Question
Tata Consultancy Services
IN
Last activity: 29 Mar 2019 15:41 EDT
Regarding how to change the content colour of the pdf
Hi,
I have a requirement to convert the section in the form of pdf, But the colour of the content in pdf in not uniform and it is displaying in white colour on some areas
Can anyone suggest how to change the colour of the PDF to the colour of our choice
***Edited by Moderator Marissa to update SR Details***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
Upon reviewing the associated Support Request, the following local-change resolved this for you:
On the presentation tab of the included layout in the section correct formats must be chosen.
Different available format maybe tested to find the correct one.
The format comes from skin configuration.
Pegasystems Inc.
IN
Hi,
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:
Hi,
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..).
Refer supported css and HTML in pd4ml:
http://pd4ml.com/css.htm
http://pd4ml.com/html.htm
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.
Pegasystems Inc.
AU
Hi Chivukula5,
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.
Tata Consultancy Services
IN
Hi,
I have tried using that textfile and modified the code colour in the text file but it is not reflecting in the downloaded pdf
Could you please suggest on that
-
Ganesh Kumar CV Shreeram Kumar
Pegasystems Inc.
AU
Could you please let us know which activity you are using to generate the PDF, is it create pdf smartshape or any other activity?
Tata Consultancy Services
IN
Hi,
I am Using pxcreatePDF Activity
Pegasystems Inc.
AU
Hi Chivukula,
Sorry for the late reply, If you are still facing the same issue, you can raise a support request, so that we can check your configuration, and help you out.
Pegasystems Inc.
US
Hi,
pyCompactStylesforPDF would only work if you set the DSS UseCompactStylesforPDF to true.
By Default this DSS is blank and thus pyCompactStylesforPDF will not be picked at runtime.
-
Brendan Horan Jie Long
Tata Consultancy Services
IN
Hi,
I had even tried with that by keeping pyCompactStylesforPDF as true but still it is not working
Thanks
Pegasystems Inc.
US
Ideally, it should work. You can go ahead an raise an SR for this. This would need some investigation.
Pegasystems Inc.
US
Hi @ChivukulaS,
Please let us know the SR ID when you open it and we can track it for you!
Thank you!
Tata Consultancy Services
IN
Thanks Marissa I will let you know once the SR Is raised
Pegasystems Inc.
PL
Hi,
For this problem was created SR-D2029 and was assigned to me.
Marcin
Pegasystems Inc.
US
Thanks Marcin! I've updated the thread with the SR details and linked this post to the SR.
Accepted Solution
Pegasystems Inc.
US
Upon reviewing the associated Support Request, the following local-change resolved this for you:
On the presentation tab of the included layout in the section correct formats must be chosen.
Different available format maybe tested to find the correct one.
The format comes from skin configuration.
-
Chivukula Sai Kiran