adonis-pdf
Advanced tools
+1
-1
| { | ||
| "name": "adonis-pdf", | ||
| "version": "0.0.1", | ||
| "version": "0.0.2", | ||
| "description": "Create PDF files within Adonis using pdfmake", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+12
-3
@@ -5,5 +5,14 @@ # adonis-pdf | ||
| ## Configuration | ||
| ## Installation | ||
| - Run `npm i adonis-pdf` or `yarn add adonis-pdf` | ||
| - Create `config/pdf.js` and set any custom fonts you wish to use: | ||
| ```js | ||
| module.exports = { | ||
| fontDescriptors: { | ||
| // my fonts here | ||
| } | ||
| } | ||
| ``` | ||
| - Add `'adonis-pdf/providers/PdfProvider'` to `start/app.js` | ||
| ## Usage | ||
@@ -19,3 +28,3 @@ ```js | ||
| const pdf = new PDF({ | ||
| // custom config (this would override config/pdf.js ) | ||
| // custom config (this will override config/pdf.js ) | ||
| }) | ||
@@ -22,0 +31,0 @@ const doc = Pdf.create({ |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
2112738
0.01%43
26.47%