ngx-extended-pdf-viewer
Advanced tools
Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "ngx-extended-pdf-viewer", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"license": "Apache License V2", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -96,3 +96,3 @@ # ngx-extended-pdf-viewer | ||
## slow way with custom translation files | ||
#### slow way with custom translation files | ||
@@ -107,3 +107,3 @@ If you want to use the slow way, but prefer to load the language files from a different URL, add a link to your application like so: | ||
## inlining the language files | ||
### inlining (aka embedding) the language files | ||
@@ -125,6 +125,9 @@ Alternatively, you can provide the translations as a Json file. This Json file has to be part of the HTML page, like so: | ||
| Error message or description | Solution | | ||
| --------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | | ||
| "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`. | | ||
| 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. | | ||
| Error message or description | Solution | | ||
| ----------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | | ||
| "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. | | ||
| 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. | | ||
| Print also includes UI elements | Usually, the entire screen is hidden automatically, but sometimes this fails, especially with widgets that are dynamically added, such as error messages, progress bars, and block UI overlays. Use media queries to hide the unwanted UI elements. For example, use something like `@media print { #modal-error-dialog: display none; }`. | | ||
@@ -155,1 +158,2 @@ ## Feedback, pull requests and bug reports | ||
| 0.3.0 | Solved the timing issue; added options for internationalization; improved the docuemtation | | ||
| 0.3.1 | improved the docuemtation | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11313407
156