@AyeshaK4 I notice that you asked the same question as a Discussion here - I have removed that post.
Please only use the ‘Ask a Question’ and do not post duplicate posts.
To generate a PDF from a section in Pega, you can use the OOTB (Out of the Box) activity HTMLToPDF. However, this activity might not perfectly replicate the UI of the section, as it converts the HTML stream to PDF and some styles might not be supported.
For the issue with the borders, you can try to define them directly in the style tag in the stream.
For the “Enter to sort” text appearing in the header, it seems like the grid headers are being included in the PDF. You can try to hide them using CSS in the HTML stream before converting it to PDF.
To have a fixed header and footer on each page of the PDF, you can create HTML rules for the header and footer and set them as parameters for the HTMLToPDF activity.
Please note that achieving a perfect replication of the section in the PDF might require some trial and error and adjustments in the HTML and CSS.
This is a GenAI-powered tool. All generated answers require validation against the provided references.
Generating and Viewing PDF
Ask the Expert - Pega and PDFs with Rahul Bojanapally and Sangeeta Kottilinga
i want use page numbering in PDF
Setting margins in PDF’s.
on click of BUtton , PDF link should be opened in modal dialogue
Header screen layout issues
Whilst we give time to our forum users to find your question can you please go through the below available resources?
Carry out a PSC search:
Also check the Resolved Issues documentation for ‘PDF’ fixes.