Merge pull request #16623 from Snuffleupagus/fully-rm-render-canvasFactory

Fully remove the `canvasFactory` option from `PDFPageProxy.render` (PR 16242 follow-up)
This commit is contained in:
Jonas Jenwald 2023-06-30 10:25:45 +02:00 committed by GitHub
commit 2f80fc1b3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1424,16 +1424,6 @@ class PDFPageProxy {
pageColors = null,
printAnnotationStorage = null,
}) {
if (
(typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) &&
arguments[0]?.canvasFactory
) {
throw new Error(
"render no longer accepts the `canvasFactory`-option, " +
"please pass it to the `getDocument`-function instead."
);
}
this._stats?.time("Overall");
const intentArgs = this._transport.getRenderingIntent(