artiebits/pdf-to-printer

Blank space at top of paper when printed

Qurishe opened this issue · 5 comments

Describe the bug
@artiebits I get extra white space at the top of the paper (you can see it below in pictures) when using this library.
But when i printed the pdf using Microsoft Edge, the extra space was much less than the one printed with the library.

To Reproduce
Steps to reproduce the behavior:

  1. Should print the pdf from the top.

Expected behavior
Currently the printed paper wastes a lot of white paper. There shouldbe a way to consume paper based on pdf size (height).

Screenshots
This one is printed with the library and there is a lot of blank space at the top.
20220926_224830

The left one is printed using Microsoft Edge which has less blank space than before.
20220926_224914

Additional context
Add any other context about the problem here.

Hi! It might be an issue with SumatraPDF that we use as a dependency to print files. I have bumped its version and published a beta version pdf-to-printer@5.4.0-beta.0. Could you please test it and let me know if it works?

Thank you, I will test it and will let u know!

Did it work? I'm having the same issue and thougth it was related to configuration of scale when executing the print method, but the output doesn't change.

Image 2022-10-03 at 19 30 56

Well, i had no luck, i haven't yet tested the beta which @artiebits fixed.
I tested another module called node-pdf-printer which worked pretty well.
20220926_224914

hi guys! I am closing this issue because If release v5.4.0 didn't help then I am afraid there is nothing I can do within this package because it uses SumatraPDF to print files