[Client-side HTML to PDF] Can it be customized to custom layout with specific height and width of PDF?
Forge component by Kilian Hekhuis
Application Type


I wanted to create a custom size of PDF with all the expressions filled with data but not really sure the way to do using this Forge. Is it possible to do so? From what I've understood on this Forge is that I need to pass the ContainerId which may include Form, sub-containers and etc and we can use the PdfBinaryGet to get the binary through the binary data. This is straightforward for me. 

But still, my concern is still on the custom layout/size of the Pdf. Since it's based on the screen of the device, I'm not sure where to set the width and height. Any advice would very much be appreciated.




Hi Kenny,

Currently the page size is hardcoded as A4, regardless of the screen size. Each Container (the intial one specified in PdfCreate as well as any additional ones you specify in PdfPageAdd) will be scaled to that page size.

Hi Kilian,

Thanks for your prompt response. Would have to explore more options out there then. Thanks again and have a nice day ahead!


Hi Kenny,

If you can't find anything else that suits your needs, let me know. Adding more page size would probably not that difficult, but I didn't have a need to add it up till now.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.