From: Phil D. <ph...@lo...> - 2014-08-06 06:34:10
|
This is a bit weird Bob, I have: case 'A4': $DocumentPaper = 'A4'; $DocumentOrientation ='P'; // Javier: DIN-A4 is 210 mm width, i.e., 595'2756 points (inches * 72 ppi) $Page_Width=595; $Page_Height=842; $Top_Margin=30; $Bottom_Margin=30; $Left_Margin=40; $Right_Margin=30; break; case 'A4_Landscape': $DocumentPaper = 'A4'; $DocumentOrientation ='L'; $Page_Width=842; $Page_Height=595; $Top_Margin=30; $Bottom_Margin=30; $Left_Margin=40; $Right_Margin=30; break; case 'A5': $DocumentPaper = 'A5'; $DocumentOrientation ='P'; $Page_Width=421; $Page_Height=595; $Top_Margin=30; $Bottom_Margin=30; $Left_Margin=40; $Right_Margin=30; break; case 'A5_Landscape': $DocumentPaper = 'A5'; $DocumentOrientation ='L'; $Page_Width=595; $Page_Height=421; $Top_Margin=30; $Bottom_Margin=30; $Left_Margin=40; $Right_Margin=30; break; case 'A3': $DocumentPaper = 'A3'; $DocumentOrientation ='P'; $Page_Width=842; $Page_Height=1190; $Top_Margin=50; $Bottom_Margin=50; $Left_Margin=50; $Right_Margin=40; break; case 'A3_Landscape': $DocumentPaper = 'A3'; $DocumentOrientation ='L'; $Page_Width=1190; $Page_Height=842; $Top_Margin=50; $Bottom_Margin=50; $Left_Margin=50; $Right_Margin=40; break; 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; case 'Letter_Landscape': // 279mm x 216mm $DocumentPaper = 'LETTER'; $DocumentOrientation ='L'; $Page_Width = 792; // 72 * 11 inch $Page_Height = 612; // 72 * 8.5 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; case 'Legal': // 216mm x 356mm $DocumentPaper = 'LEGAL'; $DocumentOrientation ='P'; $Page_Width=612; // 72 * 8.5 inch $Page_Height=1008; // 72 * 14 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; case 'Legal_Landscape': // 356mm x 216mm $DocumentPaper = 'LEGAL'; $DocumentOrientation ='L'; $Page_Width=1008; // 72 * 14 inch $Page_Height=612; // 72 * 8.5 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; case 'A6_Landscape': $DocumentPaper = 'A6'; $DocumentOrientation ='L'; $Page_Width=417; $Page_Height=295; $Top_Margin=10; $Bottom_Margin=10; $Left_Margin=10; $Right_Margin=10; break; So we are already using initial capital letters - for Letter? What else need to change? Thanks Phil Phil Daintree Logic Works Ltd - +64 (0)275 567890 http://www.logicworks.co.nz On 06/08/14 03:02, rfthomas wrote: > 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. > > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |