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

Print current view/zoomed view of pdf #11476

Closed
Anu004 opened this issue Jan 6, 2020 · 1 comment
Closed

Print current view/zoomed view of pdf #11476

Anu004 opened this issue Jan 6, 2020 · 1 comment

Comments

@Anu004
Copy link

Anu004 commented Jan 6, 2020

Hi,

Is there any way to print only the current view of a pdf? As per the default print option in pdf.js, it will print the whole selected pages. Instead of that I want to print a selected rectangular area in the pdf. Is it possible?

@timvandermeij
Copy link
Contributor

It can potentially be made, but it's not possible with the default viewer as-is. In general, printing APIs in browsers are very limited, so I think the only way to achieve this is to render the current view onto a new canvas and print that. This is, however, out of scope for the PDF.js project itself, but could be implemented in a custom deployment.

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