Skip to content

mdbook-pdf v0.1.7

Compare
Choose a tag to compare
@HollowMan6 HollowMan6 released this 11 Jun 19:07
· 19 commits to main since this release
39bb46f

Chrome generates PDF destinations "lazily", which means that the named destinations won't get added to the pdf document if the reference count is 0. So many of the named destinations don't exist when mdbook-pdf-outline tries to add the ToC since a lot of them have 0 reference count. Mitigation was added to have a workaround for this issue, as at that time, the cause was unclear: 2e4f709#diff-e4a7713ca9ac21a6fcda67ff726d3d1177972682816b6cc18afce26287808d69R88-R91

Now this update fixes the root cause by inserting invisible links to the page div in the print.html, now the reference count to those page destinations is at least 1, to make sure that generated pdf contains the destination for ToC to locate the specific page in pdf.

Full Changelog: v0.1.6...v0.1.7