Set the PDF file name and path when using a Print Command Script action Follow


BarTender Content Team

This articles applies to BarTender 2019 and later.


Is it possible to define the name and path of my PDF file when printing to PDF using Print Command Script?


Yes, when printing to PDF using our native PDF printer driver you can use the command /PRNFILE to define the path and the name for the PDF file, for example:

%BTW% /F="C:\Users\lvela\OneDrive - Seagull Scientific, Inc\Desktop\Document1.btw" /PRN="PDF" /PRNFILE="C:\PDF\%DetectedFileNameWithoutExtension%.pdf" /P


Note that as displayed on the example, you can also make use of the integration internal variables within the command script trigger to further customize the path and/or name of the file

More Information

Please also see: Command line parameter reference


Do you have feedback or questions on this article? We encourage you to post them on our Community Forums