I am generating PDF using section as a source. section has few hyperlinks in it. Generated PDF has links but when i click nothing happens. I even enabled parameter pyPDFEnableHyperlinks in data transform pyPDFSettings . Still same issue.
Please suggest.
Steps:
Create a section with couple of hyperlinks.
Create a html stream rule with code as below.
<pega:include name="xxxxxxxxxxx" type="Rule-HTML-Section" />
<br />
</head>
Create a activity trigger pyViewAsPDF ootb activity to generate PDF.
Now call this activity on a button click in any section. PDF is generated but hyperlinks dont work.
I even enabled parameter pyPDFEnableHyperlinks in data transform pyPDFSettings
Hi @Pavani_Regulagedda,
The best debugging approach I can suggest is to trace the event when the PDF generation is done, in the trace we would be able to find the HTML stream that is been generated for this PDF (As all PDF’s generated have the HTML lang associated with them to generate the page), in this stream, you can trace your link text and check if the link tags are actually generated or not, if they are missing you might need to hardcode them so that they can be present in the pdf doc.
Thanks,
Tushar
I was able to fix this by creating seperate sections for hyperlinks alone and embedded them in actual parent section.
Sections with hyperlinks are created as Non auto generated html sections and added below logic
pyDisplayHarness.pyURLContent contains url value that comes from DB.
Link name