Skip to content
On this page

API Reference ​

Parameters ​

NameDescriptionTypeDefault
elementIdselected element tag idstring--
optionssee Options section belowPaperizerOptionsee below
callBackmethod triggered after closing print windowFunction--

Options ​

PaperizerOption ​

NameDescriptionTypeDefault
targetsame as the target parameter for Window: open() methodstring_blank
featuressame as the windowFeatures parameter for Window: open() methodstring[]['fullscreen=yes', 'titlebar=yes', 'scrollbars=yes']
styleslinks to your CSSstring[][]
autoCloseautomatically closes the print preview window after the print window is closedbooleantrue
windowTitlecustom window title of the print preview windowstring(Current window title)
autoPrintautomatically start printer printing functionbooleantrue
bodyClassadd class in bodystring--

Released under the MIT License.