@react-pdf-levelup/client 1.1.26 → 1.1.27
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 +8 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,9 +3,15 @@
|
|
|
3
3
|
Utilidad de frontend para decodificar un PDF en base64 y descargarlo/abrirlo en el navegador.
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
-
<img src="https://genarogg.github.io/media/react-pdf-levelup/logo-de-react-pdf-levelup.png"
|
|
6
|
+
<img src="https://genarogg.github.io/media/react-pdf-levelup/logo-de-react-pdf-levelup.png"
|
|
7
|
+
alt="react-pdf-levelup logo"
|
|
8
|
+
width="160"
|
|
9
|
+
/>
|
|
7
10
|
</p>
|
|
8
11
|
|
|
12
|
+
## NOTA IMPORTANTE ESTA LIBRERIA ES UN COMPLEMENTO DE @react-pdf-levelup/core
|
|
13
|
+
|
|
14
|
+
|
|
9
15
|
## Instalación
|
|
10
16
|
|
|
11
17
|
```bash
|
|
@@ -43,7 +49,7 @@ decodeBase64Pdf(base64, "mi-documento.pdf");
|
|
|
43
49
|
Si ya generaste el PDF en base64 (por ejemplo con `react-pdf-levelup`):
|
|
44
50
|
|
|
45
51
|
```ts
|
|
46
|
-
import { generatePDF } from "react-pdf-levelup";
|
|
52
|
+
import { generatePDF } from "@react-pdf-levelup/core";
|
|
47
53
|
import { decodeBase64Pdf } from "@react-pdf-levelup/client";
|
|
48
54
|
import Template from "./MyTemplate";
|
|
49
55
|
|