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).