Electron-pdf with japanese fonts support
1.3K
Pdf rendering service with electron
With Docker:
$ docker run -p 3000:3000 janpot/electron-pdf
Run locally
$ npm i -g electron-prebuilt
$ electron .
GET /:urlurl: Absolute url to the webpage you want to have rendered.
$ curl http://localhost:3000/https://www.google.com > google.pdf
POST /Send a html string as the request body.
$ curl -L https://www.google.com | curl -X POST -d @- http://localhost:3000/ > google.pdf
Use following request headers to control the output pdf appearance.
x-pdf-orientation: landscape or portrait - Page orientation, defaults to portrait.x-pdf-no-backgrounds: Presence of this header prevents backgrounds from being printed.x-pdf-margins: default, none or minimum - Margin type, defaults to default.x-pdf-pageSize: A4, A3, Legal, Letter or Tabloid - Paper size, defaults to A4.Content type
Image
Digest
Size
422 MB
Last updated
over 10 years ago
docker pull neofreko/electron-pdf