A server to convert html to pdf and sign it with given certificate
You can pull the prebuilt image from docker or build it from source.
docker pull beeven/pdf-stamperPrerequisite packages:
- mono
- python
- pkg-config
- python
- libfontconfig
- nodejs
Install all prerequisite packages then run npm install to build.
path: /
method: POST
arguments:
- content: html content to convert
- pageSize: page size configuration
- format: paper size,
'A4','A5','B5', etc - orientation:
'landscape'or'portrait' - margin: bleed,
1cmor specified each edge{top:'1cm',bottom:'3cm',left:'1cm',right:'1cm'}
- format: paper size,
Example: see example directory.