Ability to set custom page size of PDF document

6 views
Skip to first unread message

Alexander Obuhovich

unread,
Sep 28, 2010, 11:11:12 AM9/28/10
to In-Portal Development
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.

Task: http://tracker.in-portal.org/view.php?id=875

Ready for testing.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

Dmitry A.

unread,
Oct 4, 2010, 12:08:52 AM10/4/10
to In-Portal Development Team
Thanks Alex,

This is quite a useful feature for those who work with generating PDFs
in In-Portal.


DA.

On Sep 28, 10:11 am, Alexander Obuhovich <aik.b...@gmail.com> wrote:
> 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
Reply all
Reply to author
Forward
0 new messages