UNPKG

augmented-reality-pdf

Version:

A module to prepare PDF documents for AR. It automatically inserts a QR code and an image target of choice on each page of the document.

15 lines (12 loc) 224 B
const pdf = require('./pdf'); var options = { input: 'sample.pdf', target: 'target.jpg', text: 'Hello there!', width: 100, height: 100, top: 1400, left: 0, useDocker: true } pdf.insertQRAndMarker(options);