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 - MergeFileList with different orientations
  FAQ FAQ  Forum Search   Register Register  Login Login

MergeFileList with different orientations

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


Joined: 21 Jun 12
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote SteveB Quote  Post ReplyReply Direct Link To This Post Topic: MergeFileList with different orientations
    Posted: 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 ?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

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

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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);

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