Giter Site home page Giter Site logo

Comments (12)

artiebits avatar artiebits commented on June 3, 2024 1

Hi @jablonskipj, please do if you want to review and give suggestions. But installing this beta version into your project and saying if it works or not is enough as well :). Thank you!

from pdf-to-printer.

artiebits avatar artiebits commented on June 3, 2024 1

Sorry to hear this. Could you please download SumatraPDF.exe v3.0.0 (the version we currently use) and try to run it with -print-settings "2x" and -print-settings "fit" and see if it works. Also, I would suggest trying SumatraPDF.exe version v3.0.1, if it solves the problem then we can upgrade the version. Thank you.

from pdf-to-printer.

artiebits avatar artiebits commented on June 3, 2024

Hi @jablonskipj, thanks for reporting the issue. There is a big discussion about how to implement options #19 but we still didn't find a proper solution. Any ideas? ;)

from pdf-to-printer.

artiebits avatar artiebits commented on June 3, 2024

Hi @jablonskipj, i've published [email protected] version with the solution that should solve your problem #70. Maybe the solution is not that good but can be improved later.

from pdf-to-printer.

jablonskipj avatar jablonskipj commented on June 3, 2024

@artiebits thank you for the answer. I will take a look at it this week, so I will be able to give feedback soon :)

from pdf-to-printer.

jablonskipj avatar jablonskipj commented on June 3, 2024

@artiebits I have one question. do you want me to make the Code Review if the solution will be working?

from pdf-to-printer.

artiebits avatar artiebits commented on June 3, 2024

Hi @jablonskipj, I've merged PR #70, if it solves your problem then I think this issue can be closed. Thanks!

from pdf-to-printer.

jablonskipj avatar jablonskipj commented on June 3, 2024

@artiebits great, thanks!

from pdf-to-printer.

jablonskipj avatar jablonskipj commented on June 3, 2024

@artiebits I have to report other problems with the printing size after the uptade. I have used both win32: ['-print-settings "2x"'] and win32: ['-print-settings "fit"'] and it does not work for the Zebra printer. After I execute the print method with these options the printer does not change the size of the resulting print, but the function also throws info to the catch callback

C:\\node-printer-server\\node_modules\\pdf-to-printer\\dist\\SumatraPDF.exe -print-to-default -print-settings \"2x\" -silent C:\\Users\\admin\\Downloads\\t.pdf

or

C:\node-printer-server\node_modules\pdf-to-printer\dist\SumatraPDF.exe -print-to-default -print-settings "fit" -silent C:\Users\admin\Downloads\t.pdf

from pdf-to-printer.

artiebits avatar artiebits commented on June 3, 2024

not sure if it helps but I found that when I implemented options I made a mistake, I was passing options to execFile in the wrong format. I released version 1.1.1-beta.1 with the fix. Unfortunately, I don't have access to a Windows machine anymore. Maybe you can try this version and say if it helps...

Sorry for these issues!

from pdf-to-printer.

hakverir avatar hakverir commented on June 3, 2024

Hi, I'm trying on windows with version 1.1.1-beta.1 and it doesn't work with both '-print-settings "2x"' and '-print-settings "fit"'. I've tried with SumatraPDF.exe v3.0.0, 3.1 and 3.1.1

from pdf-to-printer.

stale avatar stale commented on June 3, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from pdf-to-printer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.