Skip to content

beeven/pdf-stamper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors