Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-extended-pdf-viewer

Package Overview
Dependencies
Maintainers
1
Versions
636
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-extended-pdf-viewer - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

2

package.json
{
"name": "ngx-extended-pdf-viewer",
"version": "0.3.3",
"version": "0.3.4",
"license": "Apache License V2",

@@ -5,0 +5,0 @@ "repository": {

@@ -21,6 +21,3 @@ # ngx-extended-pdf-viewer

If your application has two components using the pdf viewer, and you switch between both components,
the PDF viewer may be partially removed from the memory by the garbage collector. This results
in weird errors. If you run into this problem, try hiding the PDF viewer for a short time when switching
between the components, so the PDF viewer is completely removed and initialized from scratch again.
None.

@@ -127,3 +124,2 @@ ## Compatibility to Bootstrap (and other CSS frameworks)

| "TypeError: Cannot read property 'setPagesCount' of null" | The language files couldn't be loaded. If you're following the default approach, `useBrowserLocale="true"`. In any case, check whether the language files are part of your project and if they are loaded from the correct path. Note that there's no default translation. You have to load a language file for any language, including English. In rare cases the language files are loaded, just not in time. In this case increase the value of `delayFirstView`. |
| "TypeError: Cannot read property 'div' of undefined" | You're using two instances of `<ngx-extended-pdf-viewer>` and switch between them. Unfortunately, pdf.js seems to use a few global variables. These variables are shared between the two instances. Sometimes, this causes error messages. If this happens, hide the `<ngx-extended-pdf-viewer>` for a short time before switching to the second instance. |
| The browser locale is ignored. | The HTML snippets in the folder `node_modules/ngx-extended-pdf-viewer/assets/inline-locale-files` contain exactly one language. If you want to support multiple language, you have to add the additional languages to the Json data structure. |

@@ -159,1 +155,3 @@ | sticky toolbar (when scrolling, the pdf file appears above the toolbar) | This happens if you're using the z-index to position the `<ngx-extended-pdf-viewer>`. If you can't avoid to do so, add the global CSS rule `.body .toolbar { z-index: 0; }`. The PDF viewer works without the z-index of the toolbar. The only difference is that the shadow of the toolbar is hidden by the PDF document. |

| 0.3.2 | stop registering event listeners multiple times if the component is used multiple times; tentative bugfix that occurred when switching from a file with few thumbnails (i.e. pages) to another instance of the viewer showing a file with many thumbnails |
| 0.3.3 | removed debug code and solved the bug causing crashing when switching to a new instance of <ngx-extended-pdf-viewe> |
| 0.3.4 | removed debug code |

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc