Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Blank space at top of paper when printed #398

Closed
Qurishe opened this issue Sep 26, 2022 · 5 comments
Closed

Blank space at top of paper when printed #398

Qurishe opened this issue Sep 26, 2022 · 5 comments

Comments

@Qurishe
Copy link

Qurishe commented Sep 26, 2022

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.

@artiebits
Copy link
Owner

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?

@Qurishe
Copy link
Author

Qurishe commented Oct 1, 2022

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

@Antonio0001999
Copy link

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

@Qurishe
Copy link
Author

Qurishe commented Oct 3, 2022

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

@artiebits
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants