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

Avatar
Laura Vela

This articles applies to BarTender 2019 and later.

Question

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

Answer

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
%END%

 

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

 

Please sign in to leave a comment.