Do you own a Debenu Quick PDF Library 12/11/10/9/8/7? Upgrade to Debenu Quick PDF Library 13!

Foxit Quick PDF Library

Frequently Asked Question:

Return to FAQ Index

Change the Base URL property

Question

I would like to know if it is possible to change the "Base URL" property of a PDF using Quick PDF?

Answer

Yes, the base URL for a PDF can be changed using the SetBaseURL function.

This function sets the Base URL for all URL links in the document. For example, if the Base URL was set to "http://www.example.com/" and a URL link destination was set to "index.html" then the link will point to "http://www.example.com/index.html".

Use the AddLinkToWeb function to add a URL link to the current page.

Sample code:

QP.SetBaseURL("http://www.example.com/");
QP.SetOrigin(1);
QP.AddLinkToWeb(50, 50, 20, 20, "index.html", 1);

© 2015 Debenu & Foxit. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum