Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
NewOutline |
Post Reply |
Author | |
skwirelboy
Team Player Joined: 27 Feb 06 Status: Offline Points: 45 |
Post Options
Thanks(0)
Posted: 10 Jun 08 at 1:07PM |
I am using the NewOutline function. If I try to bookmark a document which starts on the first page when you click on the bookmark link in the finished pdf it always takes you to the second page in the pdf not the first. I have tried setting the destpage param to 0 and 1. 0 doesn't work at all and 1 takes you to the second page.
I have tried setting the destposition to combinations of 0 or 1 and this makes no difference.
Is there a bug in NewOutline or am I doing something wrong.
Incidentally what is the recommended value for destposition where you just want to display the page as normal?
Thanks
Mark
|
|
Wheeley
Senior Member Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
Post Options
Thanks(0)
|
You need to select the page you want as the target for the bookmark. Here's the code I use to create a bookmark for the top of the selected page:
SelectPage (pageNbr) NewOutline (0, bookmarkText, pageNbr, PageHeight()) Hope this helps Wheeley |
|
skwirelboy
Team Player Joined: 27 Feb 06 Status: Offline Points: 45 |
Post Options
Thanks(0)
|
Hi Wheeley. SelectPage worked. Only seemed to need to do it for first document though. Odd.
Many thanks
|
|
Wheeley
Senior Member Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
Post Options
Thanks(0)
|
You need to select the page for EACH document AFTER it is loaded into QuickPDF.
Wheeley |
|
skwirelboy
Team Player Joined: 27 Feb 06 Status: Offline Points: 45 |
Post Options
Thanks(0)
|
It doesn't seem to be necessary. Even though I don't call selectpage for each document after the first the bookmark works fine.
Regards
Mark |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store