Support Article
CreateToPDF activity misaligns UI elements with PD4ML library
SA-106761
Summary
CreateToPDF activity does not align the UI elements correctly with the PD4ML library.
Error Messages
Not Applicable
Steps to Reproduce
- Configure a SmartShape to create a PDF in a flow.
- Refer the section name, PDF name, and attachment category. The generated PDF does not contain the CSS of the section.
Root Cause
A third-party product issue.
Parsing issues with PD4ML library.
Resolution
Perform the following local-change:
- Create a CSS file.
- Use the Application CSS from AppSkin.
- Preview and copy the Application CSS.
- Format the CSS and paste it in a new file (for example, TestCSS.css).
- Add the CSS file at the end.
- Create a new HTML rule.
- Include the section using pega:include.
- Include the CSS file in the Link tag (for example, TestPDFHTML).
- Save As the pxCreatePDF activity and make the below changes,
a. Remove the 'SectionName' Required parameter from the Parameters Tab.
b. Delete the step which checks for an empty Section name.
c. Add a step to pass the HTMLStream (Property-Set > Param.HTMLStream > "TestHTML(new HTML rule created)") parameter.
d. In the property-Set method, remove the parameter set for forceSkinGeneration.
e. Remove the step in which the forceSkinGeneration parameter is reset.
f. Pass the pyHTMLDisableProcessing parameter as true to the HTMLToPDF activity.
Published July 7, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.