Author Topic: Automate printing  (Read 1020 times)

Malic

  • Full Member
  • ***
  • Posts: 105
Automate printing
« on: January 07, 2023, 02:49:52 AM »
Is there an easy way to use a command, and have it print X pages from a file to a printer?

I have a two page file, and I am trying to only print the first page, as the second page is just instructions on how to fill out the first page, so waste.

Depending on where I am going,  I change files, as they are already filled out with everything except the days date, so was going to try to automate it opening file, tab into those boxes, paste in the date, and then print

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4781
  • RTFM
Re: Automate printing
« Reply #1 on: January 07, 2023, 03:32:53 AM »
Are you referring to printing from a specific application?


There is a "print" command line tool built-into Windows, however that's ancient and intended for text files (which have no concept of "pages")

Malic

  • Full Member
  • ***
  • Posts: 105
Re: Automate printing
« Reply #2 on: January 07, 2023, 05:04:26 AM »
Correct, specifically a PDF file.

Just trying to automate where I can be like "Print <place>" and it is ready to go as I head out the door to take it will me all filled out, without the second waste page

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4781
  • RTFM
Re: Automate printing
« Reply #3 on: January 07, 2023, 08:35:39 AM »
What you're asking is only very tangentially related to VoiceAttack itself...

Sumatra PDF should be able to do what you're looking for with the right command line options.

VoiceAttack can launch that using the "Run an Application" action.