Open romucci opened 3 years ago
https://bunchoblokes.org/pdf/General-Documents/BOB-Manual.pdf#page=4
Well for the A href + links its not the same as HTML. I check online and see this goes like: "#page=
@cablegunmaster The main issue is that it any anchor tag sends me to a new tab, not to an element target inside the PDF
@romucci I've found the same issue. All anchor links are incorrect. They're rendered with the base URI preceding the #
.
But that's not all.... It appears that all links <a>
are broken.
@romucci it may happened if you set base url before converting to pdf
converterProperties.setBaseUri(baseUrl); HtmlConverter.convertToPdf(html, target, converterProperties);
@romucci Did you find a solution to this? Thanks in advance!
@WISEFREAKZ @romucci @suhoy Have you found the solution? Thanks in advance!
I am creating a separate Table of Contents page that is bundled inside the PDF which has link tags as:
and then adding an a tag with the target , which also gets embedded in the PDF
when saving the PDF file, it doesn't go the section as expected, it opens up a tab in the browser with the anchor tag.