Am 19.01.2016 um 18:32 schrieb [email protected]:
Hey there,
First of all Thank You for your library it's seriously nice.
I'm a Student and just got in touch with Java.
For my School Project I Need to create a Webapplication to print Labels.
The Webapplication Needs to create a PDF and then print this PDF.
I've decided to use your library.
Now I've got one question about customizing PDF.
As I said it's a Label Printer, that means i Need to fit the pageformat to 62mm x 42mm.
I saw in the class "PDRectangle.Java" are variables with pageformat in.
I've tried to add one but it didn't worked.
Do I Need to Change something in another class to?
Default:
/**  A rectangle the size of A6 Paper. */
public static final PDRectangle A6 = new PDRectangle(105 * MM_PER_INCH, 148 * MM_PER_INCH);
What I tried to add
public static final PDRectangle LABEL = new PDRectangle(62 * MM_PER_INCH, 42 * MM_PER_INCH);


You don't have to change the source code. Just pass your own PDRectangle to the PDPage constructor.

Tilman



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to