A desktop publishing application from Microsoft that focuses on page layout and graphic design.
Instructions for Bulk Converting Publisher Files to PDF
Note: This is provided for instructional purposes, and we recommend you modify and test for your specific needs.
How to run:
Ensure you have a working and licensed version of Publisher installed on your computer.
Download the sample script from https://download.microsoft.com/download/3e67cd40-2334-4c46-a0c9-30bd43eebb3c/Convert-PubFileToPDF.ps1 to your computer.
Modify the script as needed for your intended purpose.
Open a PowerShell window with the required execution policies.
Run the script against the files or directories you need.
Examples:
Converts the specified Publisher file to PDF format.
Convert-PubFileToPDF.ps1 -Filter "C:\Documents\MyFile.pub"
Converts all Publisher files in the current directory to PDF format.
Convert-PubFileToPDF.ps1 -Filter "*.pub"
Converts all Publisher files in the current directory and all subdirectories to PDF format.
Convert-PubFileToPDF.ps1 -Filter "*.pub" -Recurse
Converts all Publisher files in the specified directory to PDF format.
Convert-PubFileToPDF.ps1 -Filter "C:\Documents*.pub"
Converts all Publisher files in the specified directory and all subdirectories to PDF format.
Convert-PubFileToPDF.ps1 -Filter "C:\Documents*.pub" -Recurse
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin