pdf.js/examples/acroforms
Jonas Jenwald f0719ed565 [api-minor] Change the getViewport method, on PDFPageProxy, to take a parameter object rather than a bunch of (randomly) ordered parameters
If, as PR 10368 suggests, more parameters should be added to `getViewport` I think that it would be a mistake to not change the signature *first* to avoid needlessly unwieldy call-sites.

To not break any existing code and third-party use-cases, this is obviously implemented with a deprecation warning *and* with a working fallback[1] for the old method signature.

---
[1] This is limited to `GENERIC` builds, which should be sufficient.
2018-12-21 11:55:20 +01:00
..
acroforms.html Adds gulp dist-install command; using pdfjs-dist package in examples. 2017-06-12 10:22:16 -05:00
acroforms.js [api-minor] Change the getViewport method, on PDFPageProxy, to take a parameter object rather than a bunch of (randomly) ordered parameters 2018-12-21 11:55:20 +01:00
README.md Interactive forms: rewrite AcroForms example 2017-02-05 23:44:32 +01:00

Overview

Example to demonstrate PDF.js library usage for rendering files with AcroForms.

Getting started

Build PDF.js using gulp dist and run gulp server to start a web server. You can then work with the example at http://localhost:8888/examples/acroforms/acroforms.html.

Refer to acroforms.js for the source code of the example.