https://github.com/beeven/pdf-stamper
https://github.com/beeven/pdf-stamper
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/beeven/pdf-stamper
- Owner: beeven
- Created: 2016-06-29T09:59:08.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-16T07:24:07.000Z (almost 10 years ago)
- Last Synced: 2025-01-24T09:28:51.334Z (over 1 year ago)
- Language: C#
- Size: 6.32 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pdf-stamper
====
A server to convert html to pdf and sign it with given certificate
Usage
-----
You can pull the prebuilt image from docker or build it from source.
### Pull image from docker repository
```bash
docker pull beeven/pdf-stamper
```
### Build from source
Prerequisite packages:
* mono
* python
* pkg-config
* python
* libfontconfig
* nodejs
Install all prerequisite packages then run ```npm install``` to build.
API
----
### Generate pdf without signature
**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, `1cm` or specified each edge ```{top:'1cm',bottom:'3cm',left:'1cm',right:'1cm'}```
Example: see example directory.