2023.2 Migration Guide
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
disableWebassembly
configuration property is no longer needed and has been removed. -
(#39279) The
PSPDFKit.Configuration#printMode
andPSPDFKit.Configuration#disableHighQualityPrinting
configuration properties will be deprecated in version2023.2.0
in favor of the newPSPDFKit.Configuration#printOptions
property, 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
printOption
configuration object. -
The value of
printOptions.mode
is stillPSPDFKit.Configuration.printMode
, butPSPDFKit.Configuration.Configuration.disableHighQualityPrinting
will now be replaced withprintOptions.quality
, andPSPDFKit.PrintQuality.LOW
is the default. You also have to option to set the print quality toPSPDFKit.PrintQuality.MEDIUM
orPSPDFKit.PrintQuality.HIGH
.
Before
PSPDFKit.load({ ...defaultConfiguration, printMode: PSPDFKit.PrintMode.DOM, disableHighQualityPrinting: true });
After
PSPDFKit.load({ ...defaultConfiguration, printOptions: { mode: PSPDFKit.PrintMode.DOM, quality: PSPDFKit.PrintQuality.LOW } });
-
-
(#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:
PSPDFKit.load({ ...defaultConfiguration, printOptions: { quality: PSPDFKit.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.