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

htmltopdf works differently between user and developer portals

SA-23814

Summary



Some font colors are displayed as grey when exporting to PDF from within one portal, and as black when exporting from within another portal.  
One of the two portals is the Developer portal and the other is a user portal.


Error Messages



Not Applicable.


Steps to Reproduce



Call HTMLToPDF from the developer and user portals and look at the font colors in the PDF presentation.


Root Cause



The HTML rule being converted to PDF contained pega:include tags that pulled in the DesktopStylesFull fragment, which contains conditionals that test whether the Developer portal is being used.

Resolution



There's no need to pull in either the WorkFormStyles or the DesktopStylesFull fragments.  
Removing those references allow the PDF presentation to be the same when
HTMLToPDF is called, regardless of which of the two portals it is called from.

 

Published June 7, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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