Print feature handling
Methods
init()
Initialize print variables
(static) makeBandW(bool, format, critic) → {string}
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 |
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 |
(static) printPrepared()
Default callback function
processVariables(input, opt) → {string}
Replace print header/footer variables
Parameters:
Name | Type | Description |
---|---|---|
input |
string | String containing variables tokens |
opt |
object | Options |
Returns:
String with replaced variables
- Type
- string