Create PDF shape issues

Hi ,

We are generating a PDF file using a section with pile of tables/grids which will generate around 25 pages document. While generating the file using Create PDF shape seeing below issues so please let me know me know if anyone faced below challenges ? if yes please share you thoughts/solutions on the issues.

  1. Taking lot of time to generate PDF( we have logic of section with smart shape).

  2. Alignment in PDF is not good as it utilizes only 70% of the page in Portrait mode i.e remaining space is blank.

  3. In between the file empty pages are generated.

Please see the attachment for sample page.

@Narender Lakshetty please can you confirm your Pega version? Is this for Pega 8.5.6 (found via a search on open support centre tickets)

Suggestion:

  1. Could you go through the following support document?

Troubleshooting HTML-to-PDF Conversion issues | Support Center

  1. What is the data source for the Create PDF? Is there a RTE involved?

If so, Wrt to your issue with empty pages:

We have seen this issue occur due to the PD4HL library responsible for PDF generation. Depending upon which FONT type is used, the library will either generate a PDF document containing thousands of blank pages, or it will consume all available heap space in the system.

This can happen when a HTML/DOC items contain Subscript values. Exampe: ABC123, where “123” is a subscript. This is typical in the expression of Chemical Equations - example: water - H2O, where the “2” is a subscript.

Notes:

The reported issue can be rectified by making use of Open sans and Georgie fonts using plain text which are in support with the pd4ml library.

Not all fonts are available for the RTE generation and this is an existing limitation. The suggestion is to use open sans font by changing the font settings in the word document.

Pega Engineering has stated that the fix to this problem is to implement significant changes to the Pega Product - so many that to do so would not be practical for this release. Therefore, the problem is filed as a Feedback/Enhancement item to document the needed change in a future release of the product. FDBK-85368 exists for this particular scenario.

3 Can you confirm if you make use of Open sans fonts using plain text (which are in support with the pd4ml library) that the issue goes away?

  1. Please can you confirm that you have logged support incident for this already? I was able to find one from TCS so just need to check this was done by you.

@MarijeSchillern

I think none of the issues resolve our issue here.

Yes we are using 8.5.6 and it’s PEGA cloud. Source for PDF is section rule and we are using smart shape.

Our business requirement is to have the Rich text format that allows the user to have the bullet points.

so are you proposing we should use simple plain text(no rich text control but text area) with Open sans ?

Yeah , I have raised the service request also INC-227046.

@Narender Lakshetty I can see that the support ticket was confirmed resolved yesterday.

The issue with the section rule was with the RTE in table of the pdf section. It generated blank pages post the RTE in pdf.

When we checked on the configuration details we found that using RTE lightweight option and the UseCompactStylesForPDF true seemed to help the issue.

Since the usecase was complex you were asked to check on the behavior with UseCompactStylesForPDF true and continue testing with this.