Skip to content

Commit

Permalink
Merge pull request #901 from VadimDez/feature/annotations-fix
Browse files Browse the repository at this point in the history
Fix arrangement of annotations #824
  • Loading branch information
VadimDez authored Jun 10, 2022
2 parents 630b45a + 460e1c7 commit e3c05dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/pdf-viewer/pdf-viewer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ export class PdfViewerComponent
typeof PDFJS !== 'undefined'
? `https://unpkg.com/pdfjs-dist@${(PDFJS as any).version}/cmaps/`
: null;
private _imageResourcesPath =
typeof PDFJS !== 'undefined'
? `https://unpkg.com/pdfjs-dist@${(PDFJS as any).version}/web/images/`
: null;
private _renderText = true;
private _renderTextMode: RenderTextMode = RenderTextMode.ENABLED;
private _stickToPage = false;
Expand Down Expand Up @@ -438,7 +442,8 @@ export class PdfViewerComponent
: RenderTextMode.DISABLED,
findController: this.pdfMultiPageFindController,
renderer: 'canvas',
l10n: undefined
l10n: undefined,
imageResourcesPath: this._imageResourcesPath,
};

this.pdfMultiPageViewer = new PDFJSViewer.PDFViewer(pdfOptions);
Expand Down

0 comments on commit e3c05dc

Please sign in to comment.