Some test text!

Hamburger Icon

Cli / Guides / Overview

DocPub: Command-line Conversion to PDF, HTML, EPUB & More

DocPub is an easy-to-use, multi-platform command-line program that can be used for high-quality batch conversion from a wide range of document formats to HTML, EPUB, XOD, XPS, and PDF.

Download DocPub

Like other Apryse products, DocPub does not rely on any third party components. The technology is suitable for use in high-throughput server environments.

SDK Guides SDK Sample

Key Functions

  • Fast, high-quality conversion from practically any document to PDF (Portable Document Format), XPS (XML Paper Specification) or XOD (web optimized OpenXPS standard), HTML or EPUB format, that maintains the original document quality and layout and preserves hyperlinks, colors and fonts.

  • Create XOD documents for use with Apryse WebViewer (HTML5, Silverlight, and Flash), including streaming conversions on-demand.

  • The conversion process preserves the original document's meta-data as well as other non-graphical information such as bookmarks, logical structure, and articles.

  • Thumbnail generation option for fast navigation through multi-page documents.

  • Automatic repair of broken PDF documents.

  • Support for all versions of the PDF Language Standard, including Acrobat 9 documents as well as ISO PDF (ISO 32000).

  • Batch conversion.

  • Wild card and subfolder processing.

  • 100% conversion accuracy.

  • Optional flattening to create PDF's that render faster on mobile devices with lower memory and speeds.

Common Use Case Scenarios

  • Developers may want to use DocPub to quickly add batch conversion support to any application or workflow that requires PDF, XPS, XOD, HTML or EPUB as output formats.

  • Server-based, on-demand conversion of documents to PDF, XPS, XOD, HTML and EPUB files.

  • Stream XOD conversions on-demand to a WebViewer client.

  • Batch processing of large collections of files with the same conversion options.

  • Extending existing applications to take advantage of the new XPS Print API and XPS print path available in Windows.

Operating Systems Supported

  • Windows, Linux and Mac.

System Requirements

  • At least 12 MB of free disk space.

  • Memory requirement is dependent on source document being converted.


echo "Example 1) Convert a PDF document to Silverlight XPS (XOD):"
./docpub -f xod -o test_out "Apryse DocPub User Manual.pdf" --lic_key "<PDFNET_LICENSE_KEY>"
echo "Example 2) Convert a PDF to print/achiving quality XPS:"
./docpub -f xps -o test_out "Apryse DocPub User Manual.pdf" --lic_key "<PDFNET_LICENSE_KEY>"
echo "Example 3) Convert an XPS document to PDF:"
./docpub -f pdf -o test_out test_out/"Apryse DocPub User Manual.xps" --lic_key "<PDFNET_LICENSE_KEY>"
echo "Example 4) Convert generic XPS to Silverlight XPS (XOD):"
./docpub -f xod -o test_out --fname fromxps test_out/"Apryse DocPub User Manual.xps" --lic_key "<PDFNET_LICENSE_KEY>"

Trial setup questions? Ask experts on Discord
Need other help? Contact Support
Pricing or product questions? Contact Sales