webERP Forum
Form Designer: Measurements NOT in mm - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: Problems / Bugs? (http://www.weberp.org/forum/forumdisplay.php?fid=8)
+---- Forum: RESOLVED - Bugs/Problems (http://www.weberp.org/forum/forumdisplay.php?fid=15)
+---- Thread: Form Designer: Measurements NOT in mm (/showthread.php?tid=211)



Form Designer: Measurements NOT in mm - MTPubRadio - 05-01-2012

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.



RE: Form Designer: Measurements NOT in mm - Exsonqu_Qu - 05-02-2012

Hi, Sir,

The text in FormDesigners have been updated!

Best regards!

Exson


RE: Form Designer: Measurements NOT in mm - MTPubRadio - 05-02-2012

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


RE: Form Designer: Measurements NOT in mm - phil - 05-05-2012

Thanks for the head up about the new TCPDF will do!
Now at 5.9.160 - things are moving fast.


RE: Form Designer: Measurements NOT in mm - cindy313 - 05-19-2014

(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 ?