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 - Problem when printing A3 landscape as A4 portrait
  FAQ FAQ  Forum Search   Register Register  Login Login

Problem when printing A3 landscape as A4 portrait

 Post Reply Post Reply
Author
Message Reverse Sort Order
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 Topic: Problem when printing A3 landscape as A4 portrait
    Posted: 24 Aug 11 at 2:30AM
We will try and fix this for the 8.11 release.  Pages with no rotation work well but we run into problems when the page rotation flag is set to 90, 180 or 270.

The solution to rotate the page to 0 degrees and then back again is the best solution and is quickest and the easiest for the time being.

Andrew.
Back to Top
CrazyTIm View Drop Down
Team Player
Team Player
Avatar

Joined: 21 Aug 11
Location: Australia
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote CrazyTIm Quote  Post ReplyReply Direct Link To This Post Posted: 22 Aug 11 at 5:25AM
Brilliant! Solved my problem. 

For me certain large PDFs didn't scale properly according to the PrintOptions. But now it works OK as I just rotate pages before printing.

Cheers, Jason.
Back to Top
Andi View Drop Down
Beginner
Beginner


Joined: 16 Jun 11
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Andi Quote  Post ReplyReply Direct Link To This Post Posted: 17 Jun 11 at 2:46PM
I have found a rather simple solution, that works at least for my example PDF.

//rotate all rotated pages back to 0 degrees
for (int page = 1; page <= qp.PageCount(); page++)
{
  qp.SelectPage(page);
  if (qp.PageRotation() != 0)
    qp.RotatePage(0);
}

Then, when printing with auto-scaling, but no auto-rotation, everything works fine :-)

Nevertheless I hope that the bug gets fixed in the next release.
Back to Top
Andi View Drop Down
Beginner
Beginner


Joined: 16 Jun 11
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Andi Quote  Post ReplyReply Direct Link To This Post Posted: 16 Jun 11 at 9:40AM
Hi,

I'm trying to print the following PDF, which contains an A3 landscape page

http://home.in.tum.de/~wengera/Din_A3_Datenblatt.pdf

in A4 portrait mode. That means, I want it to have 50% scaled and rotated by 90°.

I do:

String customPrinter = qp.NewCustomPrinter(printerName);
qp.SetupCustomPrinter(customPrinter, 1, 9); //1: paper size. 9: DMPAPER_A4
int o = qp.PrintOptions(1, 1, "bla"); //auto-scale, auto-rotate
qp.PrintDocument(customPrinter, 1, qp.PageCount(), o);

It is rotated and scaled correctly, but shifted to the right! See the result:

http://home.in.tum.de/~wengera/Problem.pdf

Is this a bug? Did I miss anything?

Thanks :-)


Andi


Edited by Andi - 16 Jun 11 at 9:43AM
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