Error in printing prescriptions

rayaz wrote on Wednesday, December 26, 2012:

Hi all,

Just upgraded to 4.1.1 today on my Ubuntu setup. I have encountered an error in prescription printing. I cannot set margins in globals in the Admin tab. Changes in margins or paper size do not show up when I print pdfs.

Please help!
Regards
Rayaz

ajperezcrespo wrote on Friday, December 28, 2012:

Hi,

When Printing PDFs make sure no adjustments are done by the driver (ie No Fit to page, Shrink to Page or such).

Alfonso

rayaz wrote on Friday, December 28, 2012:

Hi,

No adjustments are made by the driver. My problem is that the margins set in the global`s tab are not used. Instead the prescription is sent to the printer without any margins.  Previous versions e.g. 3 etc used to allow one to modify the page size and margins in /openemr/includes/config.php

Here are mine:

// select paper size for prescription printing
// see library/classes/class.ezpdf.php for complete list of paper sizes
// ex. “LETTER”, “A4”, “LEGAL” …
$GLOBALS = “A4”;

// change page margins for prescription printing
// note, values are in pixels (72 dots per inch)
// to convert from centimeters use the following: (centimeters / 2.54 ) * 72;
$GLOBALS   = 60;
$GLOBALS  = 30;
$GLOBALS    = 45;
$GLOBALS = 30;

Now I cannot do that.

Regards
Rayaz