HTMLToPDF activity does not apply external CSS styles
When using the HTMLToPDF activity, the PDF is generated but no styles or formatting is applied.
Steps to Reproduce
1. Generate HTML markup that references external stylesheets.
2. Send markup to HTMLtoPDF activity.
3. View PDF output.
The root cause of this problem is in a third-party product integrated with PRPC. This is a known limitation of the library PRPC uses for HTML to PDF (PD4ML).
Some PRPC layouts (such as Dynamic Layouts) use inline-block CSS and this issue will occur because PD4ML does not support certain advanced CSS features.
Either using different layouts (such as Free Layout) or dircetly referencing the CSS within the HTML rule (and not via a <link> tag) have been used to work around this limitation in the PD4ML library.
0% found this useful