Print feature handling
- Source:
- print.js
Methods
-
<static> makeBandW(bool, format, critic)
-
Set page up for printing, removing color and extra elements
Parameters:
Name Type Description bool
string Do or undo BandW
format
string The file format to prepare for
critic
string CriticMarkup type
- Source:
- print.js
Returns:
Success string
- Type
- string
-
<static> preparePrintOperation(printing, critic, callback)
-
Prepare for print operation
Parameters:
Name Type Description printing
boolean | string Is printing
critic
boolean | string CriticMarkup mode
callback
function Callback function
- Source:
- print.js
-
<static> printPrepared()
-
Default callback function
- Source:
- print.js
-
init()
-
Initialize print variables
- Source:
- print.js
-
processVariables(input, opt)
-
Replace print header/footer variables
Parameters:
Name Type Description input
string String containing variables tokens
opt
object Options
- Source:
- print.js
Returns:
String with replaced variables
- Type
- string