Skip to content
New issue

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

Bookmarks are not well displayed in PDF previews #336

Closed
sebdeleze opened this issue Oct 6, 2020 · 0 comments · Fixed by #337
Closed

Bookmarks are not well displayed in PDF previews #336

sebdeleze opened this issue Oct 6, 2020 · 0 comments · Fixed by #337

Comments

@sebdeleze
Copy link
Contributor

Moreover, PDFs are not well displayed in Firefox.

sebdeleze pushed a commit that referenced this issue Oct 21, 2020
This PR customizes the sidebar of the PDF previewer, to make the bookmarks more visible. It integrates some modifications to improve the PDF preview experience (i.e. with Firefox).

* Copies the worker from `pdf.js` in static folder, to avoid an error when loading the preview.
* Allows `data` and `blob` sources for fonts in content security policies.
* Adds and uses a custom base template for preview, to allow to override styles from `pdf.js`.
* Adds a custom styles sheet for previews.
* Closes #336.

Co-Authored-by: Sébastien Délèze <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant