Update your PSPDFKit for Web to version 2017.7

PSPDFKit for Web 2017.7 adds support for horizontal scaling, externally managed documents, an improved printing system, and much more.

This release requires changes to the server as well. Check out our server migration guides to learn more.

Destroy API

Instance#destroy is deprecated in favor of the newly added PSPDFKit.destroy API:

// Change this…
instance.destroy();
// …to this
PSPDFKit.unload(instance);

Changes to CSS classes

We changed a few CSS classes to be more consistent with the general styling. This mainly affects the selectors for note annotation icons:

Old classNew class
PSPDFKit-Note-Annotation-Icon-commentPSPDFKit-Note-Annotation-Icon-Comment
PSPDFKit-Note-Annotation-Icon-rightPointerPSPDFKit-Note-Annotation-Icon-RightPointer
PSPDFKit-Note-Annotation-Icon-rightArrowPSPDFKit-Note-Annotation-Icon-RightArrow
PSPDFKit-Note-Annotation-Icon-checkPSPDFKit-Note-Annotation-Icon-Check
PSPDFKit-Note-Annotation-Icon-circlePSPDFKit-Note-Annotation-Icon-Circle
PSPDFKit-Note-Annotation-Icon-crossPSPDFKit-Note-Annotation-Icon-Cross
PSPDFKit-Note-Annotation-Icon-insertPSPDFKit-Note-Annotation-Icon-Insert
PSPDFKit-Note-Annotation-Icon-newParagraphPSPDFKit-Note-Annotation-Icon-NewParagraph
PSPDFKit-Note-Annotation-Icon-notePSPDFKit-Note-Annotation-Icon-Note
PSPDFKit-Note-Annotation-Icon-paragraphPSPDFKit-Note-Annotation-Icon-Paragraph
PSPDFKit-Note-Annotation-Icon-helpPSPDFKit-Note-Annotation-Icon-Help
PSPDFKit-Note-Annotation-Icon-starPSPDFKit-Note-Annotation-Icon-Star
PSPDFKit-Note-Annotation-Icon-keyPSPDFKit-Note-Annotation-Icon-Key

Printing

We changed the default printing mode from PrintMode.EXPORT_PDF to PrintMode.DOM. This should not cause issues with existing setups.

Check out the printing guide to learn about the differences.

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