0.1.3 • Published 8 years ago

@panosoft/pdf-form-fill-server v0.1.3

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

Pdf Form Fill Server

A server that renders filled pdf forms.

npm version Travis

Installation

npm install -g @panosoft/pdf-form-fill-server

Usage

Usage: pdf-form-fill-server --key <path> --cert <path> [options]

Render filled pdf forms.

Options:

  -h, --help                    output usage information
  -V, --version                 output the version number
  -k, --key   <path>            Path to the private key of the server in PEM format.
  -c, --cert  <path>            Path to the certificate key of the server in PEM format.
  -p, --port  <port>            The port to accept connections on. Default: 8443.
  -i, --interface  <interface>  The interface to accept connections on. Default: 0.0.0.0.

HTTPS API

Request

  • Path: /
  • Method: POST
  • Headers: - Content-Type - 'application/json'
  • Body - input - {Object} - formFile - {Base64} The pdf form containing fields to be filled. - formData - {Object} The data used to fill the supplied form in the following format: { <field-name>: <value> }.

Responses

Success

  • Status Code: 200
  • Headers: - Request-Id - {String} The unique request identifier. - Content-Type - 'application/pdf'
  • Body: {Buffer} The pdf binary.

Error

  • Status Code: 500
  • Headers: - Request-Id - {String} The unique request identifier. - Content-Type - 'application/json'
  • Body: - error - {String} The error message.