Discussion

3
Replies
1208
Views
Hermy Reynolds (Hermy64)
Wells Fargo
Software Engineer
Wells Fargo
US
Hermy64 Member since 2015 19 posts
Wells Fargo
Posted: June 18, 2015
Last activity: August 26, 2015
Posted: 18 Jun 2015 13:48 EDT
Last activity: 26 Aug 2015 1:57 EDT
Closed

Setting margins on PDF's

How can I achieve setting margins in PDF's generated in Pega?

 

I have a requirement to generate PDF's that can be printed and used in windowed envelopes. I'm using the OOTB Activity HTMLToPDF. Neither this Activity or the Java API it uses (PDFUtils) have any settings for margins.

 

I have managed to get it to almost work by placing the content in a table and using CSS to apply margins for columns/table rows to approximate side and top margins. This only works if the content fits entirely on one page and isn't long enough to go past the desired bottom margin. Top and bottom margins are not applied to any subsequent pages (as is expected using an HTML table in this way).

Case Management
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.