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!
![]() |
Problem when printing A3 landscape as A4 portrait |
Post Reply ![]() |
Author | |
Andi ![]() Beginner ![]() Joined: 16 Jun 11 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Andi ![]() Beginner ![]() Joined: 16 Jun 11 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
CrazyTIm ![]() Team Player ![]() ![]() Joined: 21 Aug 11 Location: Australia Status: Offline Points: 29 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
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