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!
![]() |
Adding outlines (bookmarks) |
Post Reply
|
| Author | |
jrosen1040
Beginner
Joined: 11 Mar 10 Location: OHIO Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: Adding outlines (bookmarks)Posted: 11 Mar 10 at 5:05PM |
|
I just downloaded the library to evaluate and I am trying to add an outline using :
QP.NewOutline(0, "test", 1, 1)
(I'm working in Excel VBA)
I expected this bookmark to take me to the top of page 1 of the document, but it actually takes me to the top of page 2. Thinking that maybe the page start at zero, I tried changes the page parameter to zero, but then the bookmark doesn't work at all (it gets added, but does nothing when clicked). What am I missing?
Additionally, I'm wondering what the destPosition parameter represents. Is it a percentage of how far down the page you want to point or is it a count of something such as lines, or pixels?
Thanks for any help you can provide.
|
|
![]() |
|
ixm7
Senior Member
Joined: 13 Jan 06 Status: Offline Points: 68 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 Mar 10 at 8:51PM |
|
By default the page origin is set to the bottom of the page, so you need to SetOrigin(1) to point to the top of the page instead.
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 Mar 10 at 7:09AM |
|
Hi!
Using the search function here you'll find this one from THYA. At the end there are interesting things regarding your case: http://www.quickpdf.org/forum/newoutline--the-page-no-doesnt-update-properly_topic1230_post5646.html?KW=Bookmarks#5646 Cheers, Ingo |
|
![]() |
|
jrosen1040
Beginner
Joined: 11 Mar 10 Location: OHIO Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 Mar 10 at 12:45PM |
|
Thanks for the help. Using setorigin fixed the issue. Sorry I didn't find the previous post on this topic when I did my search.
|
|
![]() |
|
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