CSS Properties

User Guide / CSS Properties

prince-pdf-script

Syntax

prince-pdf-script: "JavaScript"

Default

""

Examples

@prince-pdf {
    prince-pdf-script: "this.print();"
}

Comments

This property can be used to include JavaScript code that will be executed when the PDF file is opened. A common use case is to activate the "Print" dialog automatically.