I am using itext PDF, and I need to set PDF document size as German Std. Fanfold(8 1/2" x 12"),I don't know how set Inches In Itext document.
// Now I can set paper size as A4 but i need to set 8 1/2" x 12" or German Std. Fanfold size
document(name: fileName,pageSize: PageSize.A4,leftMargin:8, rightMargin:8, topMargin:8, bottomMargin:3)
Thanks in advance.
Please do yourself a favor and read the documentation!
As explained in the Getting started section, measurements are expressed in user units, and there are 72 user units in an inch, so:
So you need to create a rectangle like this:
and a document like this: