Hi All,
I'm having some trouble trying to automate some printing to .pdf with PDF XChange Standard, I hope someone can see what I'm doing wrong. So essentially, My script calls pdfsaver.exe /Addprinter to create a duplicate printer called "PDF-XChange ScriptOUTPUT", then I call pdfsaver again with;
/SetOptions "Save.File=%[DocName];Save.Path="C:\PDFOUT";Save.ShowSaveDialog=0;Save.RunApp=0;Save.UseLastPath=1" /Printer "PDF-XChange ScriptOUTPUT"
This works correctly on my system, but fails when I try to test it on a client's PC (of course). The printer gets created, but the profile settings don't get applied for some reason.
Any ideas?
Thanks!
Issue setting printing save options via pdfsaver.exe /setoptions
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
- Paul - Tracker Supp
- Site Admin
- Posts: 6897
- Joined: Wed Mar 25, 2009 10:37 pm
- Location: Chemainus, Canada
- Contact:
Re: Issue setting printing save options via pdfsaver.exe /setoptions
Hi zcap
you should only need to create the printer once. Having created it your call to /SetOptions looks OK to be honest. I tried it here and it is setting the values as it does on your machine:
Have you confirmed in Print Manager that the printer was made and named as expected? Also, check /DumpOptions to see what was applied.
It should works as you have it. The only thing that comes to mind, because there is no feedback at the command line as to what's happening, would be to make sure you are creating and calling the printer properly. I would myself give it a name without spaces to make my life easier.
The most common error here is not naming the right printer when using /SetOptions.
Does that help?
you should only need to create the printer once. Having created it your call to /SetOptions looks OK to be honest. I tried it here and it is setting the values as it does on your machine:
Code: Select all
C:\Program Files\Tracker Software\PDF-XChange Standard>pdfSaver.exe /SetOptions "Save.File=%[DocName];Save.Path="C:\PDFOUT";Save.ShowSaveDialog=0;Save.RunApp=0;Save.UseLastPath=1" /Printer "PDF-XChange ScriptOUTPUT"
It should works as you have it. The only thing that comes to mind, because there is no feedback at the command line as to what's happening, would be to make sure you are creating and calling the printer properly. I would myself give it a name without spaces to make my life easier.
The most common error here is not naming the right printer when using /SetOptions.
Does that help?
Best regards
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Re: Issue setting printing save options via pdfsaver.exe /setoptions
Hi Paul, thanks for your help - I fairly sure the printer was being created properly as after creation, the script prints to the printer by name, which worked (but without the options, so the save dialog appeared etc).
Very good idea about simplifying the printer name, and I've added a step to save the /dumpoptions output in case it's still playing up. Everything still seems fine on my PC, hopefully I'll be able to test it with the client again tomorrow.
Very good idea about simplifying the printer name, and I've added a step to save the /dumpoptions output in case it's still playing up. Everything still seems fine on my PC, hopefully I'll be able to test it with the client again tomorrow.
- Will - Tracker Supp
- Site Admin
- Posts: 6815
- Joined: Mon Oct 15, 2012 9:21 pm
- Location: London, UK
- Contact:
Re: Issue setting printing save options via pdfsaver.exe /setoptions
Keep us posted!
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com