pdf-tsx 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/cjs/index.cjs +1 -2
- package/dist/cjs/pdf-tsx.css +2 -0
- package/dist/es/index.js +1 -2
- package/dist/es/pdf-tsx.css +2 -0
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -16,6 +16,16 @@ npm install react react-dom pdfjs-dist
|
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
+
## CSS
|
|
20
|
+
|
|
21
|
+
Import the stylesheet once in your app entry point:
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import 'pdf-tsx/dist/es/pdf-tsx.css'
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
19
29
|
## Quick start
|
|
20
30
|
|
|
21
31
|
`PDFViewer` requires a `workerSrc` prop — the URL of the pdfjs worker script. The easiest way is to serve it from the `pdfjs-dist` package directly:
|