2020.6 Migration Guide

Version 2020.6 improves the stability of Office document conversion and extends the document upload and document import APIs. There are no deprecations in this release.

Improvements to Office Conversion

PSPDFKit Server 2020.2 introduced conversion of Microsoft Word documents based on LibreOffice. Since then, we’ve learned more about the performance characteristics of the conversion process, and we’ve put this knowledge to practice with this release.

More specifically, this release brings improvements to conversion stability, especially in the area of reclaiming used resources after a conversion completes. You can also configure the maximum amount of time a conversion is allowed take via the LIBREOFFICE_CONVERSION_TIMEOUT variable, which might serve as an overload protection mechanism in case of large or malformed documents.

Document Upload and Import Extensions

The document upload API now accepts an overwrite_existing_document parameter, which is a Boolean. When set to true, it removes the existing document with the provided ID and replaces it with the uploaded file.

We’ve made two additions to the importDocument operation of the Document Editor API:

  1. You can now import an existing document stored in PSPDFKit Server by providing its ID and (optionally) a layer name. This acts as if the document’s PDF was generated and imported into the target document.
  2. You can target specific pages of a document to be imported by sending an extra importedPageIndexes parameter.

These new options can be used alone or together, making it easier and more efficient to build complex document editing workflows.

Other Changes

For a full list of changes, check out the Server changelog.

Migrate PSPDFKit for Web

For more information, please take a look at the PSPDFKit for Web 2020.6 Migration Guide.