Posted by Grant on February 12, 2018 at 06:03:49:
In Reply to: Setting Printable Area Size posted by Jeff Cinelli on February 11, 2018 at 17:18:47:
You divide those numbers by 1440 (TWIP.INCH) to get inches. 12240x15840 = 8.5x11.
I always make sure that my PDF printers have .25 inch margins. Depending on the driver, it's in it's setup (pdfFactory). Or, by creating a "letter with margins" form in Windows and using that as the default form for the PDF driver (Comet PDF).
A small bonus is that it also gives some left space for three hole punching. Users like that. Zero margin PDF's get top-left info cut off by PDF readers when printed.
Early on in Comet Windows printing I decided to anchor all my print at the Top-Left corner at the .25 margins. Trying for WYSIWYG with different printers. It gets helpful when printing on forms with boxes. 1099's, W2's, checks, and the like. So printers with different margins, or the same printer using different drivers (PCL5, PCL6, etc) give the same (or close) output. So, for all practical purposes, I always have 8x10.5 as my "printable area".
Helpful hint. In the original examples there were multiple "TWIP" variables. Only use TWIP.INCH.
X1 = TWIP.INCH * 3.33
gives you much better precision and readability than
RectLeft = X1 + 2*TWIP.INCH+TWIP.HALFINCH-TWIP.EIGTHINCH
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.