pdf-printer

0.0.3 • Public • Published

PDF Printer

HTTP service wrapping WeasyPrint including client library

Installation

Server

Running server is supported out-of-the-box using docker. Of course, it doesn't rely on docker and you might set it up on any sort of server you like.

docker build https://github.com/cepharum/pdf-printer.git

Client

npm i pdf-printer

The client is exposed as API of this package. Thus using it is as simple as this:

const Client = require( "pdf-printer" );
 
new Client( "http://server.foo.com:12345", "myApiKey" )
    .printHtmlCode( "<html><body>Hello World!</body></html>" )
    .then( client => client.response.pipe( process.stdout ) );

See the examples folder for additional code examples.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    26
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    26
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i pdf-printer

Weekly Downloads

28

Version

0.0.3

License

MIT

Last publish

Collaborators

  • simon.friedo
  • soletan