Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

144
Views
How to rotate pages in pdf-to-printer

I am using pdf-to-printer in node js to make a little webprinter application. This isn't the most used method, but it works decent enough. There is one little thing I don't get: enter image description here Like you can see, the api provides a landscape mode in the options, but it's listed as a string while I'd expect a boolean. Which value do I need to pass through?

Tnx!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Since that package is using SumatraPDF (Which I Support) via a complex wrapper you may find using SumatraPDF portable from https://www.sumatrapdfreader.org/download-free-pdf-viewer.html is quicker and much more reliable to set its options direct where the command to turn pages by 90 degrees is a comma delimited string "landscape" or "portrait" . NOTE it is best to use current version (which also allows for custom page sizes) when possible https://www.sumatrapdfreader.org/prerelease

SumatraPDF -print-to <printer-name> -print-settings "portrait" file(s).pdf

Note the files do not need to be PDF it will also work with any supported file type like eBooks or HTML and images. However in all cases the PDF printed by Windows Imaging will be image based (not text searchable), thus NOT suitable for TEXT flattening of forms, simply converting the static form to imagery.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!