Created
April 11, 2018 03:50
-
-
Save lite1979/fc1a4582f78e6dd68433e24692fff911 to your computer and use it in GitHub Desktop.
boca lemur FGL BIDI 26 concert ticket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```js | |
/** | |
* Boca Lemur FGL 26 | |
* | |
* PDFBOX auto-rotates and then aligns to opposite edge of | |
* document as Adobe which cuts off content. | |
* | |
* Concert Ticket should be combined with P1 to correct edge | |
* Then QZ needs 180 rotate to counter | |
* | |
* - Printer > Printer Properties > Advanced > Printing Defaults | |
* - Advanced > Paper Size > Concert Ticket | |
* - Tray Selection > Paper Source > P1 - Rotate 180 | |
*/ | |
var config = { | |
units: 'in', | |
scaleContent: false, | |
rotation: 180, | |
rasterize: false, | |
// size: { width: 2, height: 5.5 }, density: 200 | |
}; | |
config = qz.configs.create('BIDI', config); | |
var printData = [ | |
{ type: 'pdf', data: 'assets/ark_order_138117180.pdf' } | |
]; | |
qz.print(config, printData).catch(function(err) { console.error(err); }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment