2018.2 Migration Guide

PSPDFKit Server 2018.2 adds support for prerendering and caching documents and introduces an API endpoint to fetch highlighted text within a page.

Notable Changes

  • The DELETE api/documents/:document_id endpoint now also deletes the PDF file and the attachments from the asset storage when they are not needed by other documents. Because older versions of PSPDFKit Server did not delete the files from the asset storage, we added a new API endpoint, POST api/cleanup, which you can call to clean up all the unused PDFs and attachments:

    Request

    $ curl http://localhost:5000/api/cleanup \
      -X POST \
      -H "Authorization: Token token=<secret token>" \

    Response

    HTTP/1.1 200 OK
    content-length: 2
    cache-control: max-age=0, private, must-revalidate
    
    OK
  • PSPDFKit Server will now ignore invalid annotations on PDF exports instead of throwing an error, and it will log information about the invalid annotation. You can set the IGNORE_INVALID_ANNOTATIONS environment variable to false to prevent it from ignoring invalid annotations.

Migrate PSPDFKit for Web

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

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