In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
875 [In-Portal CMS] Data Management feature request N/A 2010-09-28 10:10 2010-12-06 11:59
alex  
!COMMUNITY  
normal  
reviewed and tested 5.1.0  
open  
 
none  
http://groups.google.com/group/in-portal-dev/browse_thread/thread/82362d6da4761151
Added ability to specify size and orientation for generated PDFs
0
0000875: Ability to set custom page size of PDF document
In-Portal has nice kPDFHelper class, that allows to generate PDF document based on given template name. It only has limitation, that it always uses A4 as page size for created document. And there is no ability to change that format from inside of HTML.

Here is patch, that allows to change page size using @page { size: width height orientation; } which is complaint to CSS2 specifications. You can set page size and orientation or one of them.
related to 0000864reviewed and tested  (Icebox)!COMMUNITY Styles from HEAD tag are ignored by kPDFHelper 
patch custom_page_size_support_for_pdfhelper.patch (7,229) 2010-09-28 10:10
http://tracker.in-portal.org/file_download.php?file_id=792&type=bug
patch custom_page_size_support_for_pdfhelper_v2.patch (8,371) 2010-10-06 03:42
http://tracker.in-portal.org/file_download.php?file_id=797&type=bug
Issue History
2010-12-06 11:59 alex Note Added: 0003114
2010-12-06 11:59 alex Target Version 5.1.2 => Icebox
2010-10-17 11:56 Dmitry Note Added: 0002887
2010-10-17 11:56 Dmitry Status needs testing => reviewed and tested
2010-10-06 03:44 alex Note Added: 0002877
2010-10-06 03:42 alex File Added: custom_page_size_support_for_pdfhelper_v2.patch
2010-09-29 01:48 alex Target Version Icebox => 5.1.2
2010-09-28 10:38 Dmitry Developer Dmitry => alex
2010-09-28 10:38 Dmitry Assigned To => !COMMUNITY
2010-09-28 10:38 Dmitry Developer => Dmitry
2010-09-28 10:38 Dmitry Status active => needs testing
2010-09-28 10:38 Dmitry Reference => http://groups.google.com/group/in-portal-dev/browse_thread/thread/82362d6da4761151
2010-09-28 10:38 Dmitry Change Log Message => Added ability to specify size and orientation for generated PDFs
2010-09-28 10:11 alex Relationship added related to 0000864
2010-09-28 10:10 alex New Issue
2010-09-28 10:10 alex File Added: custom_page_size_support_for_pdfhelper.patch

Notes
(0002877)
alex   
2010-10-06 03:44   
Patch "custom_page_size_support_for_pdfhelper_v2.patch" fixes:
* problem, when tag BODY size wasn't affected by specified page size
* TCPDF default margins was preventing images that should fill all page from rendering correctly (they were shifted right and appeared on next page)
(0002887)
Dmitry   
2010-10-17 11:56   
Tested okay on 5.1.1 Beta1
(0003114)
alex   
2010-12-06 11:59   
Moving to future, since we plan to use mPDF instead of whole kPDFHelper class.