Breadcrumbs

PDF Printing

Disclaimer

This workload is provided as-is and may require additional configuration and customization to function properly in each unique environment. For further customization through Professional Services, please consult with the Support and Services team. For more self-help information on workload crafting and implementation, refer to the Application Script Recording.

For more details, see the top of the attached .cs file under Additional Resources.

Overview

This workload automates the process of printing a document to PDF. It performs the following actions:

  1. Opens a defined document in an application via the command line.

  2. Sends the specified keyboard shortcut to open the Print dialog.

  3. Selects the "Microsoft Print to PDF" printer (this can be customized to a different printer).

  4. Types the specified output path.

  5. Saves the file.

  6. Opens and closes the resulting file in a PDF reader application, using the command line to open it in the default PDF reader.

Additional Resources

pdfPrinting_v1.1.cs