MSFN Forum: How to change Ghostscript output file (in printer spooler) - MSFN Forum

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to change Ghostscript output file (in printer spooler) Rate Topic: -----

#1 User is offline   golf89 

  • Group: Members
  • Posts: 3
  • Joined: 11-September 12
  • OS:XP Home
  • Country: Country Flag

Posted 11 September 2012 - 09:41 PM

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

This post has been edited by golf89: 12 September 2012 - 01:25 AM



#2 User is offline   allen2 

  • Not really Newbie
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,732
  • Joined: 13-January 06

Posted 11 September 2012 - 11:23 PM

"-sPAPERSIZE=a4" option should work on your command line according to different ghostscript manual.

This post has been edited by allen2: 11 September 2012 - 11:23 PM


#3 User is offline   golf89 

  • Group: Members
  • Posts: 3
  • Joined: 11-September 12
  • OS:XP Home
  • Country: Country Flag

Posted 12 September 2012 - 01:26 AM

that i have alredy tried out but not working :(

#4 User is offline   Ponch 

  • MSFN Master
  • Group: Patrons
  • Posts: 2,954
  • Joined: 23-November 05
  • OS:none specified
  • Country: Country Flag

Posted 12 September 2012 - 01:44 AM

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

#5 User is offline   golf89 

  • Group: Members
  • Posts: 3
  • Joined: 11-September 12
  • OS:XP Home
  • Country: Country Flag

Posted 12 September 2012 - 08:09 PM

yeah the extra quote is a mistake and that is not even working with a space after -s.

#6 User is offline   allen2 

  • Not really Newbie
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,732
  • Joined: 13-January 06

Posted 12 September 2012 - 11:44 PM

You could try changing the default papersize in the gs_init.ps as explained in 5.4 of the ghostscript manual.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy