Version 13: Polishing, fine-tuning, and bugfixes
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.