PUB to PDF API

Convert Microsoft Publisher (.pub) files to PDF without Publisher installed. Keep documents usable after the 2026 retirement.

Publishing Tools

PUB to PDF API Overview

Convert Microsoft Publisher (.pub) documents to high-quality PDF without Publisher installed. The API preserves page layout, typography, images, and vector graphics. It opens password-protected files when required, lets you decide whether to carry document metadata into the PDF, and offers PDF options such as PDF version, resolution, and color space. For regulated archives, chain the output through the PDF to PDF/A converter. Designed for automation, it batch converts entire .pub archives with consistent output for review, print, distribution, and archival. If you are migrating away from Publisher, see our Microsoft Publisher end of life guide for the retirement timeline and batch conversion scripts.

Lightning Fast Conversions

Process and convert files in seconds with our high-performance cloud infrastructure.

Accuracy Guaranteed

Our advanced algorithms ensure pixel-perfect and content-accurate file conversions.

Enterprise-Grade Security

ISO 27001, HIPAA, and GDPR compliant with encrypted file processing.

Global Infrastructure

Strategically located servers ensure low latency and high availability worldwide.

Developer Friendly

Comprehensive SDKs and clear documentation for quick and simple integration.

Time-Saving Automation

Automate repetitive document workflows and focus on what matters most.

Customizable Parameters

Fine-tune your automation with these powerful conversion options

File

File Supported formats: .pub

File to be converted. Value can be URL or file content.

Password

String

Sets the password to open protected documents.

IncludeMetadata

Bool Default: True

Include document metadata such as title, author, and keywords in the output document.

PdfVersion

Collection Default: 1.5

Set PDF version.

Values:   1.2 1.3 1.4 1.5 1.6 1.7 1.8 2.0

PdfResolution

Integer Default: 300

Set PDF resolution.

Range:   10 .. 2400

PdfTitle

String

Provide a value to customize the PDF title. Otherwise, the default document title will be used. Use single quotes and a space (' ') to remove the title.

PdfSubject

String

Provide a value to customize the PDF subject. Otherwise, the default document subject will be used. Use single quotes and a space (' ') to remove the subject.

PdfAuthor

String

Provide a value to customize the PDF author. Otherwise, the default document author will be used. Use single quotes and a space (' ') to remove the author.

PdfKeywords

String

Provide a value to customize the PDF keywords. Otherwise, the default document keywords will be used. Use single quotes and a space (' ') to remove the keywords.

OpenPage

Integer Default: 1

Set the page number at which the PDF document should open.

Range:   1 .. 3000

OpenZoom

Collection Default: Default

Set the default zoom percentage for when you open PDF files .

Values:   Default ActualSize FitPage FitWidth FitHeight FitVisible 25 50 75 100 125 150 200 400 800 1600 2400 3200 6400

RotatePage

Collection Default: ByPage

Automatically rotate pages based on the orientation of the text. By Page option will rotate each page based on the direction of the text on that page. All option will rotate all pages in the document based on the orientation of the majority of text.

Values:   Disabled ByPage All

ColorSpace

Collection Default: Default

Set PDF color space.

Values:   Default RGB CMYK Gray

StoreFile

Bool Default: False

When the StoreFile parameter is set to True, your converted file is written to ConvertAPI’s encrypted, temporary storage and made available via a time-limited secure download URL, valid for up to 3 hours. After this period, the file is permanently deleted.

When StoreFile is False, the conversion runs in memory and the file comes back in the API response: Base64 inside the JSON body by default, or as raw bytes when the request sends Accept: application/octet-stream. Nothing is written to disk or external storage, so only you can access the content.

Integrate within minutes

Easy PUB to PDF automation using our simple REST-API

Try the PUB to PDF conversion online

Try it Free

Businesses trust us

Highest rated File Conversion API on major B2B software listing platforms: Capterra, G2, and Trustpilot.

"ConvertAPI has been a game-changer for our document automation workflows. Their conversion accuracy and API reliability are unmatched in the industry for over 7 years."

"ConvertAPI is a reliable, cost-effective solution with a proven track record of stability. It has grown significantly in maturity, adopting enterprise-grade practices over the years."

"We've integrated ConvertAPI across our entire document processing platform. The performance is exceptional and the support team is always responsive. Highly recommended!"

Enterprise-Grade Security

We ensure that all document processing is handled securely in the cloud, adhering to industry-leading standards like ISO 27001, GDPR, and HIPAA. To enhance security even further, we can ensure that no files or data are stored on our servers and never leave your country.

Learn more about security

Ready to Streamline Your File Conversions?