Skip to content

Commit

Permalink
move canvas Factory to document level
Browse files Browse the repository at this point in the history
  • Loading branch information
lublak committed Mar 19, 2024
1 parent 08c2cf9 commit 49f43b0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
6 changes: 0 additions & 6 deletions src/contentinfoextractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1182,12 +1182,6 @@ export class ContentInfoExtractor {
case OPS.beginAnnotation:
this.beginAnnotation();
break;
case OPS.endAnnotation:
this.endAnnotation();
break;
case OPS.beginAnnotation:
this.beginAnnotation();
break;
case OPS.endAnnotation:
this.endAnnotation();
break;
Expand Down
1 change: 1 addition & 0 deletions src/pdfdataextractor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export class PdfDataExtractor {
password: options.password,
verbosity: options.verbosity ?? VerbosityLevel.ERRORS,
isEvalSupported: false,
canvasFactory: new CanvasFactory()
}).promise;
if (CanvasFactory.canvasApi === undefined) {
try {
Expand Down
8 changes: 0 additions & 8 deletions src/pdfpagedata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@ import { CanvasApi, CanvasFactory } from './canvasfactory';
import { ContentInfo, ContentInfoExtractor } from './contentinfoextractor';
import { OcrApi, OcrFactory } from './ocrfactory';

interface SVGElementSerializer {
getNext(): string | null;
}

interface SVGElement {
getSerializer(): SVGElementSerializer;
}

/**
* pdf data information per page
*/
Expand Down

0 comments on commit 49f43b0

Please sign in to comment.