ng2-pdf-viewer
Advanced tools
Comparing version 9.1.3 to 9.1.4
{ | ||
"name": "ng2-pdf-viewer", | ||
"version": "9.1.3", | ||
"version": "9.1.4", | ||
"description": "Angular 5+ component for rendering PDF", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -518,4 +518,13 @@ <h1 align="center">Angular PDF Viewer</h1> | ||
``` | ||
*This should be set before `pdf-viewer` component is rendered.* | ||
If you ever have a (super rare) edge case where you run in an environment that multiple | ||
components are somehow loaded within the same web page, sharing the same window, | ||
but using different versions of pdf.worker, support has been added. You can do the | ||
above, except that you can append the specific version of pdfjs required and override the | ||
custom path *just for that version*. This way setting the global window var won't conflict. | ||
```typescript | ||
(window as any)["pdfWorkerSrc2.14.305"] = '/pdf.worker.js'; | ||
``` | ||
@@ -522,0 +531,0 @@ ## Search in the PDF |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
358556
2662
561