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

Using print option in component is printing with less resolution and causing printed text to be unreadable. #179

Open
kai1992cool opened this issue Jan 21, 2022 · 1 comment

Comments

@kai1992cool
Copy link

Hi Team,

Thank you for this amazing component. We currently use this project and are having an issue where using the print button of the component is resulting in the printed document in chrome is rendered with very low quality.

Have personally analyzed this issue and have identified that its due to a harcoded value in the local pdfjs package you are using which seems to be an old version of pdf.js.

The line which is problematic is highlighted in the below screenshot.

image

Could I raise a PR where we increase the quality from 150 to 600 or update pdf.js to latest version? or is there any other better way to resolve this issue. I tried using the prototype to access the "renderPage" method of the module. But am not able to access it in angular 8, could you provide any examples or any assistance on how to close this issue?

If I could get the process of overriding the "renderPage" method I will implement it in angular, please let me know where to place this code also, ngOnInit or ngAfterViewInit,

Again, thanks for this amazing package.

@codehippie1
Copy link
Contributor

Please send in a PR. I am struggling to cope with all the bugs and requirements as I am the sole contributor now. Appreciate all the help.

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