0.2.1 • Published 6 years ago

pdf-snapper v0.2.1

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

Snapper

This is the javascript support library for the snapper project. It supports interacting with the snapper web-service to generate a PDF of a webpage, either by providing the URL (for publicly accessible pages) or by providing an HTML blob (for pages which require authentication).

Usage

Basic

<script type="text/javascript" src="path/to/snapper.min.js"></script>
<button onclick="snapper.convertPageToPdf({save: {filename: 'example.pdf'}});">Print PDF</button>

The above will initiate the download of a PDF containing the contents of the current page.

Advanced

Methods

Options

0.2.1

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago