Skip to content

Instantly share code, notes, and snippets.

@lite1979
Created April 11, 2018 03:50
Show Gist options
  • Save lite1979/fc1a4582f78e6dd68433e24692fff911 to your computer and use it in GitHub Desktop.
Save lite1979/fc1a4582f78e6dd68433e24692fff911 to your computer and use it in GitHub Desktop.
boca lemur FGL BIDI 26 concert ticket
```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