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 11 don't support A6? |
Post Reply ![]() |
Author | |||
shawn ![]() Beginner ![]() Joined: 01 Dec 15 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() Posted: 01 Dec 15 at 2:41PM |
||
Hi,
I use Debenu Quick PDF Library 11 for printing. It seems the library doesn't support paper size from 69 to 118(A6 is 70). To be specific, I use SetupCustomPrinter() set paper size and it always return 0 for the above paper size. I am wondering whether it is a limitation of Debenu Quick PDF Library 11 or a bug? If it is a limitation, does Debenu Quick PDF Library 12 support paper size from 69 to 118. Thanks ahead!
|
|||
![]() |
|||
shawn ![]() Beginner ![]() Joined: 01 Dec 15 Status: Offline Points: 3 |
![]() ![]() ![]() ![]() ![]() |
||
From document, it seems SetupCustomPrinter() only support paper size from 1 to 68. And we need set paper height and width if customer size is needed?
|
|||
![]() |
|||
LuProch ![]() Beginner ![]() ![]() Joined: 01 Feb 13 Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
||
I had the same problem - to print a pre-existing PDF file in A6 portrait format to a printer to the same paper format. The idea was to put the A6 paper to the center of the A4 paper tray. I use the newest version of Quick PDF Library - 14.11.
First I tried to use the DMPAPER code. This doesn't work, because the SetupCustomPrinter function accepts only values 1 to 68.
Then I tried to set the size in millimetres. This worked only with a virtual printer (to PDF), but not with a physical printer (to paper). I tried three different physical printers and it always printed to the top left corner of A4. (There was a bug in older Quick PDF versions, where SetupCustomPrinter(customPrinter, 1, 0) returned 0. This is fixed in newer versions, where it returns 1. But functionality stays the same.)
Finally I discovered a workaround. You can alter the PDF itself - add new A4 page, cut the A6 page (or basically any page size) and paste it into the top of the new A4 page, where you center it horizontally. Then you print the resulting A4 page normally and put A6 paper to the center of the A4 paper tray. You can just print and not save the changes to file, the original PDF file stays unchanged. Here is my code (simplified for document with only one page):
|
|||
![]() |
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