Question
Capgemini India PVT Ltd
IN
Last activity: 1 Jul 2024 6:38 EDT
In PDF document table alignment is not coming properly which are add by Rich text editor.
I have multiple rich text editor where I have added multiple tables with heading and when I am generating the document in PDF it showing all tables are misaligned like some are left and some are right. Any suggestion will help full for me. Can we manage them with CSS label.
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 1 Jul 2024 6:38 EDT
Pegasystems Inc.
IN
@souravg2765 - When generating the PDF based upon the DSS setting UseCompactStylesForPDF the styles will be added to the data which we are passing.
If the DSS is false or empty then application skin styles will be passed.
If DSS is true then the styles will be picked up from pyCompactStylesForPDF css file.
To understand more what styles are actually coming during run time, trace the PDF generation and in HTMLToPDF any step open the parameter page and check for Markup. This Markup data only will be passed for PDF generation , It holds html content and can easily find out what styles are causing this issue.
Thank you.
Pegasystems Inc.
GB
@souravg2765 can you confirm that you have first gone through the available support documents?
Troubleshooting HTML-to-PDF Conversion issues
Troubleshooting document attachment issues with PDF inline preview
Updated: 2 May 2024 3:44 EDT
Capgemini India PVT Ltd
IN
@MarijeSchillern but they are mention this solution for section to PDF Document but I am facing issue From rich text editor when I have added any one or multiple table and generate the PDF document this all table and the table headings are misaligned
Pegasystems Inc.
GB
@souravg2765 if you get no further help from our community members feel free to log this as an issue via the MSP and provide the INC id here so that we can help track it.
Pegasystems Inc.
IN
@souravg2765 - To investigate which styles or css causing the issue when generating the PDF we need to verify Markup parameter.
To capture markup value enable the tracer and generate the PDF . In activity HTMLToPDF any step open the parameters page and search for Markup. Share that markup value to understand why alignment issues are seen.
Thank you.
Capgemini India PVT Ltd
IN
In side the PEGA only in the rich text editor if you add any table with the heading and keep it in center, left or right align after generating this document in pdf the table heading is miss aligned.
It is happening only in rich text editor where we are not add any external style. That is PEGA default feature.
Accepted Solution
Updated: 1 Jul 2024 6:38 EDT
Pegasystems Inc.
IN
@souravg2765 - When generating the PDF based upon the DSS setting UseCompactStylesForPDF the styles will be added to the data which we are passing.
If the DSS is false or empty then application skin styles will be passed.
If DSS is true then the styles will be picked up from pyCompactStylesForPDF css file.
To understand more what styles are actually coming during run time, trace the PDF generation and in HTMLToPDF any step open the parameter page and check for Markup. This Markup data only will be passed for PDF generation , It holds html content and can easily find out what styles are causing this issue.
Thank you.
Eclatprime Digital Private Limited
IN
@souravg2765 Pega default behaviour it is to follow. RTE works as it is when i was with the Pega that time also we raised that issue with internal team to look into that. You should use table with CSS alignments