Help ! Converting pub files

Arlis Sturdy 20 Reputation points
2026-03-05T18:58:07.69+00:00

I have over 2000 pub files - what app is easiest to use to batch convert

You wouldn't just leave loyal (since 1995) users out to hang

Microsoft 365 and Office | Publisher | For home

6 answers

Sort by: Newest
  1. AI answer

    2026-03-05T18:58:20.5+00:00

    The easiest supported way to batch-convert a large number of .pub files is to use the provided PowerShell automation script together with an installed, licensed copy of Microsoft Publisher.

    Steps:

    1. Ensure Publisher is installed
      • Install and activate a working, licensed version of Microsoft Publisher on the machine that will run the conversion.
    2. Download the sample PowerShell script
      • Download the sample script Convert-PubFileToPDF.ps1 from the article “Microsoft Publisher will no longer be supported after October 2026” (see reference below under Example conversion script).
    3. Adjust the script if needed
      • Open the script in a text editor (such as Visual Studio Code or Notepad).
      • Optionally modify output folder, file naming, or export options as needed. The script uses Publisher’s Document.ExportAsFixedFormat API; you can adjust parameters such as PbFixedFormatType and PbFixedFormatIntent, or switch to Document.SaveAs with PbFileFormat if you want other formats.
    4. Open PowerShell with appropriate execution policy
      • Open Windows PowerShell as an administrator.
      • Ensure execution policies allow running local scripts (see the execution policies link in the same article for details). Adjust only as needed and according to your organization’s security policies.
    5. Run bulk conversions
      • Place Convert-PubFileToPDF.ps1 in a folder that’s easy to access.
      • Use one of these examples (replace paths with your own):
      • Convert a single file:
             .\Convert-PubFileToPDF.ps1 -Filter "C:\\Documents\\MyFile.pub"
        
      • Convert all .pub files in the current folder:
             .\Convert-PubFileToPDF.ps1 -Filter "*.pub"
        
      • Convert all .pub files in the current folder and subfolders:
             .\Convert-PubFileToPDF.ps1 -Filter "*.pub" -Recurse
        
      • Convert all .pub files in a specific folder:
             .\Convert-PubFileToPDF.ps1 -Filter "C:\\Documents\\*.pub"
        
      • Convert all .pub files in a specific folder and its subfolders:
             .\Convert-PubFileToPDF.ps1 -Filter "C:\\Documents\\*.pub" -Recurse
        
    6. Notes and behavior
      • The script is designed to continue running even if some files fail and will report which files succeeded and which encountered errors.
      • If a PDF with the same name already exists in the target location, that file will not be overwritten; an error will be shown. Rename or remove the conflicting file and rerun the script if needed.

    This approach lets thousands of Publisher files be converted in bulk without opening each one manually.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

    3 people found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.