Skip to content

Releases: stephanrauh/ngx-extended-pdf-viewer

20.0.0

25 Apr 20:48
1834524
Compare
Choose a tag to compare

What's Changed

Version 20 contains a couple of minor bugfixes that might break your application. It's not likely, but I decided to play it safe and to increase the major version number. The new version

  • updates to pdf.js 4.1. The bleeding-edge is a sneak preview of version 4.2, containing the latests (and possibly buggy) addition from pdf.js.
  • I've improved CSS encapsulation. Recently, I'd added a couple of CSS files and forgot to wrap these file into the ngx-extended-pdf-viewer. If you've modified some of my CSS rules, you may want to add the .ngx-extended-pdf-viewer class to the CSS selector. If you haven't done so yet, your CSS rule is probably broken.
  • I've fixed bugs with checkboxes and radiobuttons in forms. This might break your application if it relies on the bugs.
  • I've removed the minified ES5 build. I suspect nowadays very few people are using the ES5 build, so let's reduce the size of this package.

Auto-generated change list

New Contributors

Kudos go to three new contributors. You guys rock! This library is a lot of work, but it doesn't feel like work because I'm supported by such a great community. No matter whether you request a new feature, report a bug, improve the documentation, or send me a pull request to the core library, you show me this library matters - and that's a great motivation to carry on!

In particular,

Full Changelog: https://pdfviewer.net/extended-pdf-viewer/changelog

Update to pdf.js 4.0

07 Feb 21:33
8ddd784
Compare
Choose a tag to compare

The most important change since version 18 is updating to pdf.js 4.0.

18.0.0

19 Sep 20:35
f797680
Compare
Choose a tag to compare
18.0.0

17.4.7

16 Sep 14:00
791e21d
Compare
Choose a tag to compare
17.4.7

Version 16: PDF editor and smooth zooming

05 Feb 21:03
8a5b854
Compare
Choose a tag to compare

The key features of ngx-extended-pdf-viewer are the small PDF editor and the smooth zooming.

The PDF editor allows you to "annotate" a PDF with texts and hand-drawings. You can use this to add comments to a PDF, for example. Strictly speaking you don't modify the PDF. You add add texts and drawings to a layer on top of the PDF file.

Smooth zooming is a major improvement on mobile devices and touchpads.

Version 16 now runs on pdf.js 3.3 - a major jump compared to version 15, which ran on pdf.js 2.9.

BTW: please use the most current minor or patch version (e.g. ^16.0.0 or ~16.0.0) to make sure you benefit from the latest bug fixes.

Version 15.0: pdf.js 2.6; support for AMD modules; bugfixes

11 Sep 19:54
Compare
Choose a tag to compare

This release updates to pdf.js 2.6 (default branch) and pdf.js 3.0 (bleeding edge branch). Now the libraries plays well with libraries using AMD modules and supports East-Asian fonts, even if the PDF file is using CMAPs. Plus, it fixes a couple of minor bugs.

Version 14.5: Restoring East-Asian Fonts; Tidying Up CSS When Closing the Viewer

31 Jul 19:52
Compare
Choose a tag to compare
  • raised the minimum required Angular version to 11.1.0
  • 14.0.1 going back to Angular 13 after detecting that ng-packr 14 break compatibility to Angular 12 + 13
  • 14.0.2 raised the minimum required version of Angular to 12 (Note that Angular 11.1.0 is reported to be compatible, but my compatibility tests failed)
  • 14.0.4 #1429 Class loadingInProgress now vanishes after page load
  • 14.0.5 #8 prevent the browser from filling input field with password or user names; #1433 fixed the CSS code highlighting find results covering multiple spans (the middle sections appeared at random positions)
  • 14.0.6 #1434 show the print progress dialog in PrimeNG modals even after closing and re-opening the modal
  • 14.0.7 #1447 remove the global CSS when the viewer is removed from the DOM, and restore it when the viewer is created again (workaround of the Angular bug angular/angular#16670)
  • 14.5.0-alpha.0 #1447 replace ViewEncapsulation.None by a home-brewn CSS injection engine because the CSS was never removed removing destroying ngx-extended-pdf-viewer from memory
  • 14.5.1 removed debugger statements; updated the bleeding-edge branch of pdf.js; removed an unused dependency
  • 14.5.2 prepared updating to pdf.js 2.15; #1463 restored support for Japanese fonts; removed a redundant null check from file-info.component.html

Version 13: Polishing, fine-tuning, and bugfixes

27 Apr 21:26
Compare
Choose a tag to compare

This version brings quite a few bugfixes and a long list of minor features:

  • Dialogs are now displayed using the <dialog> tag
  • The dialogs have become Angular components to make it easier to create custom themes
  • Now you can replace the root component (i.e. everything!) by a custom component by setting [customPdfViewer]
  • The CSS rules now use less wildcards
  • Now the 14 standard fonts are included (sorry about the inconvience!)
  • The mousewheel now only zooms if the mouse is above the PDF file. Earlier version zoomed the PDF file even if you tried to zoom some other part of the application.
  • Deal gracefully with browsers like Safari that block the LocalStorage
  • Allow developers to close (or hide) the PDF by setting [src]="undefined"; that's not a new feature, but the old implementation didn't cover a lot of corner cases. Not the feature works reliable in most - hopefully all - circumstances.
  • The programmatic export API now allows you to export images with transparent background, provided the PDF file supports that. (If the PDF author decided to add a background to the file or to certain texts, this background can't be removed).
  • Allow developers to switch scroll modes dynamically
  • Added an API to scroll within / to scroll to a particular part of a page.

As of version 13.0.0, there's also a small but annoying regression. After page load, there's a small delay before rendering starts. I've managed to bring down the delay to roughly 200-300 milliseconds, but even so, you might notice it. If that's an issue to you, track progress in #1316.

12.1.0

31 Mar 15:42
Compare
Choose a tag to compare

Another small bugfix release. Plus, it upgrades to pdf.js 2.13.

Version 11.2.0

12 Feb 20:46
Compare
Choose a tag to compare

This release brings a couple of bug fixes over release 11.0.0.