From: Everton L. B. <ev...@fa...> - 2004-03-08 16:27:42
|
hi, I modified the follow lines of pdf.c for paper report be A4 instead LETTER. 114: cpdf_pageInit(OUTPUT_PRIVATE(r)->pdf, page_number+i, LANDSCAPE, A4, A4); 115: cpdf_translate(OUTPUT_PRIVATE(r)->pdf, 0.0, 11.8); /* 11.0 must be changed for non-LETTER size */ 120: cpdf_pageInit(OUTPUT_PRIVATE(r)->pdf, page_number+i, PORTRAIT, A4, A4); It's okay, but in landscape mode the top of report is cutted (starts at line 3), and in portrait mode the report starts 3 lines after top of page. I suggest you add a method ( $rlib->setPaperSize('A4'); ) like new feature for the next version of rlib. -- Everton Luis Berz Nucleo de Sistemas :: FACCAT - Faculdades de Taquara +55 51 541 6600 - R.647 ICQ 7807919 |