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!
SetOutlineDestination(...) Top ? |
Post Reply |
Author | |
hubbra
Beginner Joined: 22 Jun 06 Location: Germany Status: Offline Points: 13 |
Post Options
Thanks(0)
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 ? |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
hubbra
Beginner Joined: 22 Jun 06 Location: Germany Status: Offline Points: 13 |
Post Options
Thanks(0)
|
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 ? |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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
|
|
Wheeley
Senior Member Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
Post Options
Thanks(0)
|
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 |
|
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