Office Files and Image Documents

Since version 2020.2, PSPDFKit Server supports importing documents in different file formats:

  • PDF (available for all licenses)
  • Image Documents (JPEG and PNG, requires a specific license feature)
  • Office files (Word, Excel, and PowerPoint, requires a specific license feature)

You can create a document in any of the supported file formats and then use the functionality of both the Web API and the Server API.

For example, you can create a document starting with an Office file, add some form fields to it, and then digitally sign it.

To guarantee compatibility with all features included in PSPDFKit for Web and PSPDFKit Server, it’s only possible to export a document in PDF format. However, you can download the originally uploaded file via the PDF download API endpoint using the source=true query string parameter.

For instructions on how to upload documents in one of the supported formats, please consult the relevant guide page.

Performance Considerations

To operate on an Office file, PSPDFKit Server needs to convert the file to a PDF during the document import process. For documents created by uploading a file and documents with a remote URL, conversion happens completely transparently.

No matter the document source, PSPDFKit Server will store the PDF counterpart of the original file in its configured asset storage. This is particularly relevant if you plan to use documents with remote URLs that point to Microsoft Office files.

The conversion from Office to PDF is handled by a headless LibreOffice instance included in the PSPDFKit Server Docker image. Depending on the size and complexity of the file, the conversion process can take a significant amount of CPU and memory. We recommend testing your setup with a wide range of documents and using the monitoring facilities offered by your deployment solution to make sure the load is compatible with your current infrastructure.