Jump to content

How to change Ghostscript output file (in printer spooler)


Recommended Posts

Posted (edited)

I am using Ghostscript to print a PDF by command line arguments. But it shows the printed document's name as Ghostscript output in printer spooler. I want to change it to a custom name .

for that i have tried a command :

gswin32c -dNOPAUSE -dBATCH -c "mark /UserSettings <</DocumentName (MyDocName)>> (mswinpr2) finddevice putdeviceprops setdevice" -f -sOutputFile="%printer%Test" "-sPAPERSIZE=a4 test.pdf

it is solving the problem but creating a new ie. it always give "letter" as the output page size

so suggest me the way by which i can achieve both goals

Thanks

Edited by golf89

Posted

... there are 5 quotes ("), that is one quote too much or one too many. +there should probably be a space before -s.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...