Print Page | Close Window

NewOutline

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=903
Printed Date: 17 May 24 at 3:59AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: NewOutline
Posted By: skwirelboy
Subject: NewOutline
Date 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



Replies:
Posted By: Wheeley
Date Posted: 11 Jun 08 at 1:30AM
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


Posted By: skwirelboy
Date Posted: 17 Jun 08 at 12:33PM
Hi Wheeley. SelectPage worked. Only seemed to need to do it for first document though. Odd.
 
Many thanks


Posted By: Wheeley
Date Posted: 19 Jun 08 at 4:47PM
You need to select the page for EACH document AFTER it is loaded into QuickPDF.

Wheeley



Posted By: skwirelboy
Date Posted: 20 Jun 08 at 4:50AM

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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk