mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
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:
commit
2f80fc1b3d
1 changed files with 0 additions and 10 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue