Print Page | Close Window

Some pages Portrait, some Landscape

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=2888
Printed Date: 22 Nov 24 at 2:07PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Some pages Portrait, some Landscape
Posted By: abutler
Subject: Some pages Portrait, some Landscape
Date 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



Replies:
Posted By: tfrost
Date Posted: 07 May 14 at 11:03AM
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.


Posted By: Chopinke
Date Posted: 10 May 14 at 5:34AM
How about using the PrintPages function?


Posted By: hrdware
Date Posted: 12 May 14 at 7:21PM
Originally posted by abutler abutler wrote:

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

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.



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