How to add bookmarks in generated PDF

We have a requirement to generate a large PDF of 250 pages. We would like to add bookmarks to the PDF for quick navigation. I found a couple of documents downloaded from PDN have that feature(Attached here). Is there any way we can add the same for PEGA generated PDF from a Section?

Thanks in advance

Pega Customer Service Product Overview.pdf (2.8 MB)

@Prav19 I am not sure whether that is possible using the Out of the Box HTMLToPDF activity but you can try this below approach by mapping the HTML Markup using the Propset-Set-HTML before invoking the activity to generate the PDF.

Also bookmarks generated cannot be linked to the Sections/Heading those use the Named Destination i didnt find any extension points which would do that. I am sharing the information what i am aware of .

Title of PDF (Href are named Destinations in PDF i dont think so we can generate this in OOTB)

pd4ml:page.header

<pega:include name="HeaderSection" type="Rule-HTML-Section" />

    </pd4ml:page.header>

    

    <pd4ml:page.footer>

        <pega:include name="FooterSection" type="Rule-HTML-Section" />

    </pd4ml:page.footer>

    <pega:include name="BodySection" type="Rule-HTML-Section" />

</body>

</html>

@Abhilash_K

I was able to achieve this with the OOTB HTMLToPDF activity. it takes the param pyEnableOutlines and that will generate bookmarks from the Anchor tags included in Section HTML(Attached generated PDF with bookmarks).

We will need to include Anchor tags as below to achieve it. We can even pass them dynamically through Property-ref

Texas
NC

Thanks for your proactive reply…

@Prav19

Can you send an image of how you set the anchors in the sections and how you set the parameter in the activity?