Thanks for posting your query in Product Support Community.
Can you please provide us some more information to understand the issue:
1. Which version of Pega are you using?
2. Are you trying to Create a Section with a repeating grid layout and using the "Create PDF" smart shape to generate a PDF of that section?
If the version is below 7.2 and if you agree with my above second question then this could an expected behavior and the below mentioned content might help you:
It's expected behavior currently because there is a limitation of the underlying PD4ML APIs which we are using to generate PDF document, which does not support some of the advanced HTML-5,CSS-3 features of PRPC sections. Also mentioned that engineering team resolve this issue in >= Pega 7.2 version's, Its not possible to back port the changes because lot of changes happen on this(GRID , Section,PD4ML new library etc..).
Please keep in mind that : 1. HTMLtoPDF makes an approximation of the HTML, the best way it can shove it into a printable document. Your results will never be 100% the same as a Harness. 2. If the main issue you are having is the white-colored text, this is a known quirk with PD4ML.
We currently think that all of Pega's code is working as designed and that PD4ML is unable to interpret/render the HTML and CSS to your satisfaction. * PRPC's HTML and CSS are not perfect, and PD4ML is nowhere close to as robust as your typical web browser, so it cannot "make good guesses" and "render things anyway." Your browser is secretly doing a whole lot of work to make PRPC look good. * There are also some "on Load" and deferred events/scripts that PD4ML may not be firing before rendering the document, which would explain the white "Loading..." text toward the bottom, and quite possibly the styles of the buttons. * Some of the CSS in PRPC uses features that PD4ML does not support and it can lead to styles being lost instead of used * The white text all over the place is caused by a known issue in PD4ML where the CSS color directive is "inherit" and the inheritance chain lands at no color and PD4ML chooses to default to white.
If you are using PRPC 7.4 or above , there is a css stylesheet named as pyCompactStylesforPDF, There you can define the css styles related to content specific. Styles specified in this CSS file can override the styles which is not required.
Please let me know if you need any help over this.