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!
Creating new outlines- wrong pages bug |
Post Reply |
Author | |
rogerad
Beginner Joined: 08 Dec 05 Location: Australia Status: Offline Points: 14 |
Post Options
Thanks(0)
Posted: 16 Mar 09 at 7:11AM |
i am creating new outline bookmarks
here is my code qpbook.selectedpage(prpage); curoutlineid := qpbook.newoutline(0,prtitle,prpage,0); in delphi the NEW bookmark points to the correct page when i view the pdf in adobe But after clicking the bookmark , the bookmark POINTS to the NEXT page in the pdf eg correct page is page 5 but bookmark points to page 6 in pdf |
|
roger adams
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Roger!
When you're creating a new document. QuickPDF assumes that there should be at least one page - so QP does this automatically and so page 1 is already there. When you're adding now page by page to the new document i can imagine that you forgot the first page from QP? ... And so the index is shifted by one. Am i right? Cheers, Ingo |
|
rogerad
Beginner Joined: 08 Dec 05 Location: Australia Status: Offline Points: 14 |
Post Options
Thanks(0)
|
Ingo
the pdf is already in existence i am just adding extra bookmarks to the pdf the pdf has 20 bookmarks in it before i add extra bookmarks the extra bookmarks point to the correct pages when viewed in adobe BUT when i click on them they point to the page ABOVE the correct page eg page 5 bookmarks points to page 6 after being clicked in adove |
|
roger adams
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Is it possible to upload it...?
Can we see it anywhere? Cheers, Ingo |
|
rogerad
Beginner Joined: 08 Dec 05 Location: Australia Status: Offline Points: 14 |
Post Options
Thanks(0)
|
ingo
i have worked out that the problem is caused by the vertical position if i set a position of 450 or greater, then the correct page appears i am using setorigin top left WHY DOES THIS HAPPEN ??? ROGER |
|
roger adams
|
|
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
|
Hi Roger,
You have correctly identified the cause of the problem by setting the vertical position to something other than zero. The default co-ordinate system measures from the bottom of the page. So if a value of 0 for the vertical position is used Acrobat / Adobe Reader will show the next page (the top of the following page is attached to the bottom of the linked to page). I hope this helps. Cheers, Rowan |
|
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