Do you own a Quick PDF Library 7 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 8 today!

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);

© 2012 Debenu. All rights reserved. AboutBuyContactBlogNewsletterSupportFAQProduct UpdatesForum