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!
![]() |
MergeFileList with different orientations |
Post Reply
|
| Author | |
SteveB
Beginner
Joined: 21 Jun 12 Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: MergeFileList with different orientationsPosted: 22 Jun 12 at 11:16AM |
|
Hello, I'm using Version 8.16 and want to merge some PDF's together.
They have different orientations, the first is landscape, the second is
portrait, both A4. MergeFileList creates a PDF in A4 portrait, the first
document is printed only the left side (information fitting on A4
portrait). Can I change this behaviour, and how ?
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 Jun 12 at 12:29PM |
|
Hi Steve!
If you change the order the result will be different but still not okay ;-) I didn't make this experiences with earlier versions and i won't expect such problems now. An idea: Perhaps the landscape-pdf was a portrait-pdf first and then rotated to landscape? So internally it's still managed as portrait and for displaying it will be turned. If i'm right you can check the rotation first before merging. An easy but ugly way to avoid the problems could be to set the dimensions first to 852 x 852 ;-) Hope i could give you some ideas... Cheers and welcome here, Ingo |
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 Jun 12 at 8:50AM |
|
The following code should solve the problem. PrintOptions(1,1.. turns on AutoFit and AutoRotate for printing. Andrew. QP.LoadFromFile("271227000001.PDF", ""); for (int i = 1; i <= QP.PageCount(); i++) { QP.SelectPage(i); QP.NormalizePage(0); } int iPrintOptions = QP.PrintOptions(1, 1, "Printing Sample"); QP.PrintDocument(QP.GetDefaultPrinterName(), 1, QP.PageCount(), iPrintOptions); |
|
![]() |
|
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