@iqx-limited/quick-pdf 1.0.2 → 1.0.3
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 +2 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@ html2pdf(input: string | URL)
|
|
|
28
28
|
| Parameter | Type | Description | Data that can be passed |
|
|
29
29
|
|-----------|---------------|--------------------------------------------------|--------------------------------------------|
|
|
30
30
|
| `input` | `string \| URL` | The HTML content to convert to PDF. | A file path or a URL pointing to HTML content, as either a Node URL object or a Node string. Alternativly pass an html string directly. |
|
|
31
|
+
| `base64` | `string?` | Return a base64 encoded string instead of a buffer | Boolean |
|
|
31
32
|
|
|
32
33
|
## 2. `img2pdf`
|
|
33
34
|
|
|
@@ -70,4 +71,4 @@ pdf2img(input: Buffer | string | URL, options: Options = {})
|
|
|
70
71
|
|-----------|----------------------------------------------------------------------|--------------------------------------------------|
|
|
71
72
|
| `scale` | `number` | Scaling factor for rendering the PDF pages. Default is 1. |
|
|
72
73
|
| `password`| `string` | Optional password for decrypting password-protected PDFs. |
|
|
73
|
-
| `
|
|
74
|
+
| `mime` | `string` | The mime type to output - "image/png" | "image/jpeg". Default is "image/png". |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iqx-limited/quick-pdf",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"author": "IQX",
|
|
5
5
|
"description": "Converting PDFs to images (📃 to 📸)",
|
|
6
6
|
"type": "module",
|
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
"pdfjs-dist": "^4.8.69",
|
|
42
42
|
"pdfkit": "^0.15.1",
|
|
43
43
|
"playwright": "^1.48.2",
|
|
44
|
-
"semver": "^7.6.3"
|
|
44
|
+
"semver": "^7.6.3",
|
|
45
|
+
"sharp": "^0.33.5"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
48
|
"@stylistic/eslint-plugin": "^2.10.1",
|