Skip to content

Instantly share code, notes, and snippets.

@jmas
jmas / print.js
Created November 16, 2016 11:55
print.js - es6
const PRINT_TYPES = ['pdf', 'html', 'image', 'json'];
const DEFAULT_OPTIONS = {
printable: null,
type: 'pdf',
header: null,
maxWidth: 800,
font: 'TimesNewRoman',
font_size: '12pt',
honorMarginPadding: true,