Form Designer: Measurements NOT in mm
Hello,
I need to recode the format for the Purchase Order and started looking at the Form Designer. After a few hours of banging my head on the table since the measurements in Form Designer don't match what gets printed, I started digging into the code. (BTW: Please update to the most current TCPDF 5.9.159 it supports more barcodes and fixes some barcode problems). And Found THIS:
At the top of the Form Designer page is this line:
All measurements are in millimetres.
they aren't the measurements are in POINTS (72dpi = 72pts per inch)
Here is where this comes from: PDFStarter.php
$pdf = new Cpdf($DocumentOrientation, 'pt', $DocumentPaper);
See the 'pt' ? that sets points.
The text on the Form Designer page needs to be updated.
|