@tato30/vue-pdf
Advanced tools
Comparing version 1.7.0 to 1.7.1
{ | ||
"name": "@tato30/vue-pdf", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "PDF viewer for Vue 3", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -63,2 +63,4 @@ <div align="center"> | ||
### Text and Annotations | ||
This component supports text-selection and annotation-interaction by enabling them with `text-layer` and `annotation-layer` props respectively, but for this layers renders correctly is necessary setting `css` styles, it can be done by importing default styles from `@tato30/vue-pdf/style.css`. | ||
@@ -79,7 +81,2 @@ | ||
Check the follow examples: | ||
- [Text-Layer](../examples/basic/text_layer.md) | ||
- [Annotation-Layer](../examples/basic/annotation_layer.md.md) | ||
You can also create your own custom styles and set them in your project, use this examples as guide: | ||
@@ -90,2 +87,22 @@ | ||
### XFA Forms <badge type="tip" text="v1.7" vertical="middle" /> | ||
XFA forms also can be supported by enabling them from `usePDF`. | ||
```vue | ||
<script setup> | ||
import { VuePDF, usePDF } from '@tato30/vue-pdf' | ||
import '@tato30/vue-pdf/style.css' | ||
const { pdf } = usePDF({ | ||
url: '/example_xfa.pdf', | ||
enableXfa: true, | ||
}) | ||
</script> | ||
<template> | ||
<VuePDF :pdf="pdf" /> | ||
</template> | ||
``` | ||
## Server-Side Rendering | ||
@@ -92,0 +109,0 @@ |
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
2953554
125