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 - SetOutlineDestination(...) Top ?
  FAQ FAQ  Forum Search   Register Register  Login Login

SetOutlineDestination(...) Top ?

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


Joined: 22 Jun 06
Location: Germany
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote hubbra Quote  Post ReplyReply Direct Link To This Post Topic: SetOutlineDestination(...) Top ?
    Posted: 20 Aug 13 at 1:00PM
I try to change the outline show position from all outlines in one PDF to the top of the page.
With DPLSetOutlineDestination(int InstanceID, int OutlineID, int DestPage, double DestPosition);
it should work, but often I see the next page even with DestPosition = 0 or 1 ...
So it looks like the top is not so small and testet 1000 ... looks better, but not perfekt.

I can't find infos in the docu about the real value of "Top of the Page" ... my page is A4 210x297mm.

Any hints ?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 20 Aug 13 at 1:27PM
Hi Hubbra ;-)
 
The question is where the page creation shall begin.
If the starting point is at the bottom, left then "top of page" means (for example) 852 psunits.
If the starting point is top, left then "top of page means 0 or 1 psunits.
If you want to be sure that the starting point is at the top, left then you should use SetOrigin(1) and tell the document that you want to start at the top, left and then the system put your drawings at the top of the page if you're using DrawText(1,1,...).
 
Cheers, Ingo
 
Back to Top
hubbra View Drop Down
Beginner
Beginner


Joined: 22 Jun 06
Location: Germany
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote hubbra Quote  Post ReplyReply Direct Link To This Post Posted: 20 Aug 13 at 1:37PM
a good question, I thought it would be by PDF / printers always TOP LEFT, but it looks like this is not true on these PDF. When I build my own with QuickPDF i use my class for Xbase++ and this will create top left, but now I have a Framemaker document, with the Acrobat PDF printerdriver.
And it looks like the left bottom is used.

My problem is, how high is the page ?

What is this "psunits" in size ?


Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 20 Aug 13 at 6:11PM
You can say (correct) psunits or the common pixels.
PageHeight and PageWidth are functions from QuickPDF.
The resulting value will change (mm, inches or pixels) it depends on SetMeasurementUnits.
To be sure about top, left:
Load the document and use first SetOrigin(1) then it's like you want it. 
Please have a look inside the online reference and the developer guide.
DIN A4 means 842 x 595 pixels means 210 x 297 mm means ... inches.

Cheers, Ingo
Back to Top
Wheeley View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 Oct 05
Location: United States
Status: Offline
Points: 146
Post Options Post Options   Thanks (0) Thanks(0)   Quote Wheeley Quote  Post ReplyReply Direct Link To This Post Posted: 20 Aug 13 at 10:32PM
Here's what I used when adding outlines to a workbook. All outlines point to the top of the page.

pdf_idx = 0
page_total = 0
do while (pdf_idx < pdf_count)
            pdf_idx ++
            QuickPDFSelectPage (pdf_instance_id, page_total + 1)
            QuickPDFNewOutline (pdf_instance_id, 0, bookmark, (page_total + 1), QuickPDFPageHeight (pdf_instance_id))
loop

Hope this helps
Wheeley

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