Relative Content

Tag Archive for angularpdfgoogle-chrome-headless

Anchor tags in PDFs are not navigating where they are placed

We are using Chrome Headless to generate a PDF. In our html we’re generating a Table of Contents with anchor tags to navigate us to each section in the PDF. Unfortunately, when you click on the link it navigates way past the beginning of the section and the user always has to scroll back up. Is there a better way to do this? The code looks like this: