We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems that pdftk can not retrieves page number bookmarks.
From http://weasyprint.org/samples/CSS21-intro.pdf :
$ pdftk CSS21-intro.pdf dump_data InfoKey: Producer InfoValue: WeasyPrint 0.17 (http://weasyprint.org/) NumberOfPages: 9 BookmarkTitle: 2.1 A brief CSS 2.1 tutorial for HTML BookmarkLevel: 1 BookmarkPageNumber: 0 BookmarkTitle: 2.2 A brief CSS 2.1 tutorial for XML BookmarkLevel: 1 BookmarkPageNumber: 0 BookmarkTitle: 2.3 The CSS 2.1 processing model BookmarkLevel: 1 BookmarkPageNumber: 0 BookmarkTitle: 2.3.1 The canvas BookmarkLevel: 2 BookmarkPageNumber: 0 BookmarkTitle: 2.3.2 CSS 2.1 addressing model BookmarkLevel: 2 BookmarkPageNumber: 0 BookmarkTitle: 2.4 CSS design principles BookmarkLevel: 1 BookmarkPageNumber: 0
Same problem with a PDF generated with Weasyprint 0.19.2.
The text was updated successfully, but these errors were encountered:
I could reproduce this, but I have no idea what’s wrong. The bookmarks lead to the right pages in evince and other PDF viewers.
Sorry, something went wrong.
It seems that if you use page object id instead of page number it works.
Here is a diff for a patch :
$ diff pdf.py.new pdf.py 389,392c389,390 < '/D [{0} 0 R /XYZ {1:f} {2:f} 0] >>\n', < pdf.pages[bookmark['target'][0]].object_number, < bookmark['target'][1], < bookmark['target'][2])) --- > '/D [{0} /XYZ {1:f} {2:f} 0] >>\n', > *bookmark['target']))
76b87c8
No branches or pull requests
It seems that pdftk can not retrieves page number bookmarks.
From http://weasyprint.org/samples/CSS21-intro.pdf :
$ pdftk CSS21-intro.pdf dump_data
InfoKey: Producer
InfoValue: WeasyPrint 0.17 (http://weasyprint.org/)
NumberOfPages: 9
BookmarkTitle: 2.1 A brief CSS 2.1 tutorial for HTML
BookmarkLevel: 1
BookmarkPageNumber: 0
BookmarkTitle: 2.2 A brief CSS 2.1 tutorial for XML
BookmarkLevel: 1
BookmarkPageNumber: 0
BookmarkTitle: 2.3 The CSS 2.1 processing model
BookmarkLevel: 1
BookmarkPageNumber: 0
BookmarkTitle: 2.3.1 The canvas
BookmarkLevel: 2
BookmarkPageNumber: 0
BookmarkTitle: 2.3.2 CSS 2.1 addressing model
BookmarkLevel: 2
BookmarkPageNumber: 0
BookmarkTitle: 2.4 CSS design principles
BookmarkLevel: 1
BookmarkPageNumber: 0
Same problem with a PDF generated with Weasyprint 0.19.2.
The text was updated successfully, but these errors were encountered: