Ng2 Pdf Viewer Versions Save

📄 PDF Viewer Component for Angular

10.0.0

8 months ago

Improvements

  • [#915] - Update to Angular 16
  • in [#915] also updated pdfjs-dist version to 2.16.105

9.1.5

1 year ago

Improvements

  • [#992] - scale not correctly updated on pdf-viewer rotation for pdf page with 90° rotation
  • [#993] - fix #992 : fix rotation on pdf with included rotation

9.1.4

1 year ago

improvements

  • [#943] - chore(deps): bump ejs and webpack-bundle-analyzer
  • [#971] - feat: Support version specific pdf.worker.js url

9.1.2

1 year ago

improvements

  • [#925] - 9.1.1 version lacks pdfFindController.executeCommand
  • [#927] - Fix search
  • [#926] - Improve arrangement of annotations

Breaking Change

Since FindController.executeCommand is deprecated, you should now use eventBus to do search. Example:

@ViewChild(PdfViewerComponent) private pdfComponent: PdfViewerComponent;

search(stringToSearch: string) {
  this.pdfComponent.eventBus.dispatch('find', {
    query: stringToSearch, type: 'again', caseSensitive: false, findPrevious: undefined, highlightAll: true, phraseSearch: true
  });
}

9.1.1

1 year ago

Improvements

  • [#916] - (pageChange) event not getting emitted - Single Page Viewer
  • [#921] - Issue 916 - (pageChange) event not getting emitted - Single Page Viewer

9.1.0

1 year ago

Improvements

  • [#900] - Upgrade pdfjs-dist to ~2.14.305
  • [#901] - Fix arrangement of annotations #824

9.0.0

2 years ago

Improvements

  • [#873] - feat: Updated pdfjs-dist version to 2.13.216 from 2.11.338
  • [#879] - Update css for the version 2.13.216
  • [#880] - Use minified worker
  • [#882] - Inline images
  • [#883] - Drop legacy support

Breaking changes

Support for older browsers (IE) is not completely dropped (#883)

8.0.1

2 years ago

Improvements

  • [#855] - Can't load document after error
  • [#856] - fix can't load document after error

8.0.0

2 years ago

Changes

  • [#838] - fix css selector for text selection in chrome
  • [#857] - Angular 13 Update | Enable Ivy
  • [#852] - Encourage the library authors to publish an Ivy distribution.
  • [#854] - TypeError: Cannot read properties of null (reading 'selectors')
  • [#863] - Loader is stuck when upgrade to newest version

7.0.2

2 years ago

Improvements

  • [#829] - feat: upgrade to pdfjs-dist 2.11.338
  • [#834] - Give sane default to host
  • [#805] - width of pdf page exceed the maximum width and got trimmed from the right side
  • [#811] - .ng2-pdf-viewer-container not in parent container
  • [#828] - can't now show digital signature PKCS#7

Breaking change (Since 7.0.0)

Now you need to specify how much space pdf-viewer element should take by using CSS, so either set width and height, use flexbox or use something like positioning.

Example using height and width:

<pdf-viewer [src]="src" [original-size]="false" style="width: 400px; height: 500px"></pdf-viewer>

Example using absolute positioning to take entire page:

<pdf-viewer [src]="src" [original-size]="false" style="position: absolute; top: 0; right: 0; bottom: 0; left: 0"></pdf-viewer>