New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

adonis-pdf

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonis-pdf - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"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",

@@ -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({

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc