Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Configure a SmartShape to create a PDF in a flow.
  2. 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:
  1. Create a CSS file.
  2. Use the Application CSS from AppSkin.
  3. Preview and copy the Application CSS.
  4. Format the CSS and paste it in a new file (for example, TestCSS.css).
  5. Add the CSS file at the end.
  6. Create a new HTML rule.
  7. Include the section using pega:include.
  8. Include the CSS file in the Link tag (for example, TestPDFHTML).
  9. 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.

Suggest Edit

Published July 7, 2020 - Updated December 2, 2021

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us