First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!
1 | initial version |
You can do it indirectly by changing your printer
step 1 Download a pdf printing software that allows hiding the dialog windows
step 2 (this has to be done only once) Find the printer settings and set a default name and location for your pdfs, either (a) as default or (b) using macros that can be handled by your python script (i prefer to have a default name and change it later within the script) Also suppress all dialog and error boxes
step 3 Use psspy.printdiagfile('your-printer',#copies,orientation) This should print your sld with the default printer settings
step 4 locate the pdf using python and change the name and location to whatever you want [option (a) of step 2] OR modify your python code such that it is compatible with the printer's macros [option (b) of step 2]
step 5 repeat until the last case
it should work