webERP Forum

Full Version: Form Designer: Measurements NOT in mm
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Hi, Sir,

The text in FormDesigners have been updated!

Best regards!

Exson
Thank you,

Didn't mean to sound angry.
It was 1:30 in the morning and I was trying to keep my message short.

Thanks for all the hard work.

JC
Thanks for the head up about the new TCPDF will do!
Now at 5.9.160 - things are moving fast.
(05-01-2012, 05:37 PM)MTPubRadio Wrote: [ -> ]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.

sorry for so late reply ! but just wondering what problem will meet about barcode ?