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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Adding outlines (bookmarks)
  FAQ FAQ  Forum Search   Register Register  Login Login

Adding outlines (bookmarks)

 Post Reply Post Reply
Author
Message
jrosen1040 View Drop Down
Beginner
Beginner


Joined: 11 Mar 10
Location: OHIO
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jrosen1040 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
ixm7 View Drop Down
Senior Member
Senior Member


Joined: 13 Jan 06
Status: Offline
Points: 68
Post Options Post Options   Thanks (0) Thanks(0)   Quote ixm7 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
jrosen1040 View Drop Down
Beginner
Beginner


Joined: 11 Mar 10
Location: OHIO
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote jrosen1040 Quote  Post ReplyReply Direct Link To This Post 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.  Smile
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store