From: rfthomas <rf...@as...> - 2014-08-05 15:02:45
|
Many of the PDF reports are not generating usable PDF files. We have isolated the following problems in includes/PDFStarter.php 1) Several reports do not specify a recognized papersize. The default in the switch/case does not provide adequate information. Most of our reports are printed on Letter in Portrait mode. We have copied these settings to the default case making the following change: default: // case 'Letter': // 216mm x 279mm $DocumentPaper = 'LETTER'; $DocumentOrientation ='P'; $Page_Width = 612; // 72 * 8.5 inch $Page_Height = 792; // 72 * 11 inch $Top_Margin = 36; // Half inch = 72/2 $Bottom_Margin = 36; // Half inch = 72/2 $Left_Margin = 36; // Half inch = 72/2 $Right_Margin = 36; // Half inch = 72/2 break; // $DocumentOrientation = 'L'; // break; 2) The case statements as case sensitive. We have changed the case statements to match the case of the forms being used. Changes have been made to match the values stated in the calling script, generally "letter" to "Letter", etc. Bob Thomas -- View this message in context: http://weberp-accounting.1478800.n4.nabble.com/Problems-Printing-PDF-V4-11-3-tp4657591.html Sent from the web-ERP-developers mailing list archive at Nabble.com. |