Anchor link in html doesn't work in pdf

Certified Senior Developer

I have a html file and I have put anchor link in the Table of Content that will direct me to the selected part in the html webpage. But after I print the page and save as pdf, the anchor link is clickable but it directs me to the wrong part. Anyone have idea of how to solve this?

I also try to use html to pdf smart service instead of printing as pdf, the anchor link in pdf completely doesn't work.

  Discussion posts and replies are publicly visible