PSPDFKit 2023.2 migration and updates
PSPDFKit for Web 2023.2 introduces some new APIs and includes several bug fixes. To determine if you need to take action, check your implementation and refer to the information below.
Notable changes
(#38270) Edge 18 is no longer supported starting in PSPDFKit for Web 2023.2.0. As a result, the
disableWebassemblyconfiguration property is no longer needed and has been removed.(#39279) The
NutrientViewer.Configuration#printModeandNutrientViewer.Configuration#disableHighQualityPrintingconfiguration properties will be deprecated in version2023.2.0in favor of the newNutrientViewer.Configuration#printOptionsproperty, which should be used instead from now on.- If any of the deprecated properties are used, a warning will be logged, prompting you to use the new property. However, the old properties will still work until version
2023.3.0. At that point, they’ll be completely removed, and their usage will throw an error. - To migrate, replace the properties with the
printOptionconfiguration object. - The value of
printOptions.modeis stillNutrientViewer.Configuration.printMode, butNutrientViewer.Configuration.Configuration.disableHighQualityPrintingwill now be replaced withprintOptions.quality, andNutrientViewer.PrintQuality.LOWis the default. You also have to option to set the print quality toNutrientViewer.PrintQuality.MEDIUMorNutrientViewer.PrintQuality.HIGH.
Before
NutrientViewer.load({...defaultConfiguration,printMode: NutrientViewer.PrintMode.DOM,disableHighQualityPrinting: true});After
NutrientViewer.load({...defaultConfiguration,printOptions: {mode: NutrientViewer.PrintMode.DOM,quality: NutrientViewer.PrintQuality.LOW}});- If any of the deprecated properties are used, a warning will be logged, prompting you to use the new property. However, the old properties will still work until version
(#39279) The default printing quality has changed: While it formerly printed in high quality by default, it’ll now print in low quality for fast printing by default. If you want to keep the former default behavior, you need to explicitly set high quality in the configuration object:
NutrientViewer.load({...defaultConfiguration,printOptions: {quality: NutrientViewer.PrintQuality.HIGH}});
Migrate PSPDFKit Server
For information on PSPDFKit Server migration, see PSPDFKit Server 2023.2 migration guide.
For a full list of changes, check out the changelog. For the previous release notes, see Web SDK 2023.1 release notes.