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.
DELETE api/documents/:document_idendpoint 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:
$ curl http://localhost:5000/api/cleanup \ -X POST \ -H "Authorization: Token token=<secret token>" \
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_ANNOTATIONSenvironment variable to
falseto prevent it from ignoring invalid annotations.
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.