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

How to manipulate pdf.js options (or iframe content)? #54

Closed
nulele opened this issue Mar 20, 2020 · 4 comments
Closed

How to manipulate pdf.js options (or iframe content)? #54

nulele opened this issue Mar 20, 2020 · 4 comments

Comments

@nulele
Copy link

nulele commented Mar 20, 2020

Hello,

I'd like to hide/remove the right panel button in the top right corner... any idea how to do it?

Thanks

UPDATE: currently I managed to hide the sidebar by commenting some code inside src/statics/pdfjs/web/viewer.html... but I'd prefere a more elegant way to do it... :P

@hawkeye64
Copy link
Member

@nulele pdfjs is scheduled to be deprecated in the pdf viewer app-extension. Try integrating it yourself for better manipulation.

@nulele
Copy link
Author

nulele commented Mar 20, 2020

@nulele pdfjs is scheduled to be deprecated in the pdf viewer app-extension. Try integrating it yourself for better manipulation.

DOH!!! I'ts a shame... it works perfectly for me! So your plan is to keep the html5 only type?

@hawkeye64
Copy link
Member

@nulele Actually, we have been discussing of making a QPdfviewLight that only contains the HTML5 pdf viewer and keep the pdf.js in this one.

You can discuss here: #45

@hawkeye64
Copy link
Member

Both native HTML5 PDF viewer and PDFjs are available.
Manipulations on the PDFjs toolbar cannot be made at this time. You would have to integrate PDFjs viewer and do that work yourself.

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

No branches or pull requests

2 participants