Report Definition Custom Section Losing Format when Exported to PDF
We have a custom section with Dynamic Layouts which is being referred from the Report Definition Rule. When we try to export this to PDF using the OOTB export to PDF the inline layout is being replaced with stacked layout in the PDF.
Is there a way to retain the formatting while exporting to pdf?
Thanks
Hello,
For exporting to PDF, internally we are using pd4ml library. There are some limitations with pd4ml library for some css properties(inline-block). When the application skin is used for PDF, the same cannot be reflected in PDF due to those limitations. Hence we came up with "UseCompactStylesForPDF" parameter or dss setting. From 7.4 onwards, we have introduced this DSS setting “UseCompactStylesForPDF”. When set to true, the application skin is not imported into the PDF but a bare minimum css is provided as an available rule “pyCompactStylesForPDF.css” which has some default styles that the developer can override. With this setting enabled, css will be consistent for all PDF’s. Alternatively we can pass a parameter “UseCompactStylesForPDF” to HTMLToPDF activity with value “true”.