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!
Some pages Portrait, some Landscape |
Post Reply |
Author | |
abutler
Beginner Joined: 06 May 14 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 06 May 14 at 10:35PM |
Hi. I have a PDF document where the first page is landscape and the rest is portrait. I need to use custom print settings presumably using DPL.PrintDocument(). Is there a way to tell the API to print each page in its natural orientation or do I have to create a special case and submit two print jobs - one in landscape and another in portrait?
Thanks, Arthur |
|
tfrost
Senior Member Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
Post Options
Thanks(0)
|
You could load the PDF, modify the rotation value for the first page, and print the whole document as portrait. Remember that the first page, when you load it, could either have height<width or could just as easily have width<height and a non-zero rotation. Both would appear the same when viewed.
|
|
Chopinke
Team Player Joined: 29 Apr 14 Status: Offline Points: 24 |
Post Options
Thanks(0)
|
How about using the PrintPages function?
|
|
hrdware
Team Player Joined: 16 May 13 Location: Oklahoma, USA Status: Offline Points: 24 |
Post Options
Thanks(0)
|
Two things I can think of: 1) When setting up the printer options to pass to the print command, set the Auto Rotate and Center Option (QP.PrintOptions(PageScaling,AutoRotateandCenter,'Title')) 2)I have the same problem and can't use the auto rotate and center so as someone else already mentioned, I wrote some code to rotate every page into a portrait layout when printing, then print the document. |
|
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