You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Peter Pinnau <pe...@unterbrecher.de> on 2017/06/28 09:05:39 UTC
Printing A4 documents created with PDFBox
I create 1-page documents with pdfbox, current version 2.0.6.
Page is added like this:
final PDDocument doc = new PDDocument();
PDPage page = new PDPage(PDRectangle.A4);
doc.addPage(page);
// rendering some images and texts ...
The document is printed on a sticker template (Zweckform) via Adobe
Reader or another PDF application. The printing positions has to be
accurate.
The user has to be set an option in the printing dialog to avoid
scaling. I believe the reason for default scaling are the page margins
of the printer (hardware or driver specific).
Is there a way to create a PDF document in a way, that A4 is printed
exactly on A4 regardless what printing hardware and application is used?
Maybe I have to specify margins or some of the PDF boxes (crop, bleed
...). I did some tests on that without success.
--
Viele Grüße
Peter Pinnau
Diplom Wirtschaftsinformatiker (FH)
----------------------------------------------
http://www.unterbrecher.de - MZ ES 250 & mehr
----------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org