{"_id":"@alvarosacari/electron-pos-printer","_rev":"2-4a4f0df3d11eebbcd199ad787fe81301","name":"@alvarosacari/electron-pos-printer","dist-tags":{"latest":"1.2.7"},"versions":{"1.2.5":{"name":"@alvarosacari/electron-pos-printer","version":"1.2.5","description":"Electron thermal 58mm printer","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"mocha","start":"npm run build && npm run demo","demo":"electron ./demo/","pack":"webpack --config ./webpack.config.js","build":"tsc","test:all":"mocha -R mocha-jenkins-reporter --timeout 20000 \"./src/test/**/*test-*.js\"","test:one":"mocha --watch -u bdd \"./src/test/**/test-*.js\" --grep \"test-login-form\""},"repository":{"type":"git","url":"git+https://github.com/alvarosacari/electron-pos-printer.git"},"keywords":["electron","printer","thermal","pos"],"author":{"name":"Hubert Formin","email":"hformin@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/alvarosacari/electron-pos-printer/issues"},"homepage":"https://github.com/alvarosacari/electron-pos-printer#readme","dependencies":{},"devDependencies":{"@types/node":"^16.9.2","chai":"^4.2.0","chai-as-promised":"^7.1.1","electron":"^14.0.1","mocha":"^6.2.3","spectron":"^9.0.0","typescript":"^3.9.6","webpack":"^4.43.0","webpack-cli":"^3.3.12","webpack-node-externals":"^1.7.2"},"gitHead":"1bdde3ad6b49b52dc9e841d4dc82cbec9ba7db4d","_id":"@alvarosacari/electron-pos-printer@1.2.5","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-OnJw60sGM7HkJfaTCrufQ4ie9ha6MdepboPj+riVPidexZuSxHN2nOTMqv2xCjvDnq+1iAuCk4Ww3rCVyv/aLQ==","shasum":"2046716485fc511ed222ad56e0e3ce6c7eddd187","tarball":"https://registry.npmjs.org/@alvarosacari/electron-pos-printer/-/electron-pos-printer-1.2.5.tgz","fileCount":17,"unpackedSize":221142,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYOsHTEuDWlv7GlyzSwaF6d91+EAQH+DlS79wsu5q+cAIhAOk3gYugLZThCgUjVZr1rOInGNM1Wr2dWGwtkurU2En0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/SVqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdvxAAk3z9ZgBkNDCAdqiIuovHZSwi0DxQLtdXUP21H8BEzvrs5AcM\r\necwN7l0SDIhozPdXGVolfT8Tph87g08RoUt3GEOy8y//sueZHTgZgJm1Vkp3\r\nLg1dHbAC23aSs0TO0US2JeRj52uuEMTBTYwT1My9x/fcKOJV6DFO6S5CY3Q+\r\nR0ZCWnPAuILhfgUa5I+6zWecXSRC2MQmg8sok2vMhScJO5CQen8xkOPciqsW\r\nNStP4uDNgD16Wwx/gBNnGVn1u1EKDsobegbSd7rQ/IhU1OXvLNvvlyn0r+Y1\r\n7NM1XB9QvxjHIKuEHZHZbl0A2mIKzjVDO+Ic7PONf+iQKfhdynfewkJAenZX\r\nU0SN1PUlUlvy8ERAk6WvZ8jtE7XF3jSHLBfOQuWOx3CEtP8hbXEXQUpsELMu\r\ntejEVHpJoDAO3ycPNuLFX0Mc3DjvT8XJWIGMO2RYB9dLaFZ1rCdX6I6D30KH\r\nb54h4WW2YRtdChTyr8oqEqY4ZhIFl+RplO9QaomuognqJCFQTixsb40MXqyy\r\nuikehbgmLTyZBa2vNvuk0ZcRoFSwADpiRO8LrYVTgmuuAifEtBH00HDhNpS/\r\n6PD5lSkUthMhQ43vDN4ffxDnAdIatkTqsli1bjoQxneQHBzu+Tulop/Nho9b\r\n+LcV9B5qrBbiY+66zzqjqZcfu693h23u4+M=\r\n=Whrw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alvarosacari","email":"alvaro.sacari@gmail.com"},"directories":{},"maintainers":[{"name":"alvarosacari","email":"alvaro.sacari@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-pos-printer_1.2.5_1660757353800_0.46489246468513357"},"_hasShrinkwrap":false},"1.2.6":{"name":"@alvarosacari/electron-pos-printer","version":"1.2.6","description":"Electron thermal 58mm printer","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"mocha","start":"npm run build && npm run demo","demo":"electron ./demo/","pack":"webpack --config ./webpack.config.js","build":"tsc","test:all":"mocha -R mocha-jenkins-reporter --timeout 20000 \"./src/test/**/*test-*.js\"","test:one":"mocha --watch -u bdd \"./src/test/**/test-*.js\" --grep \"test-login-form\""},"repository":{"type":"git","url":"git+https://github.com/alvarosacari/electron-pos-printer.git"},"keywords":["electron","printer","thermal","pos"],"author":{"name":"Hubert Formin","email":"hformin@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/alvarosacari/electron-pos-printer/issues"},"homepage":"https://github.com/alvarosacari/electron-pos-printer#readme","dependencies":{},"devDependencies":{"@types/node":"^16.9.2","chai":"^4.2.0","chai-as-promised":"^7.1.1","electron":"^14.0.1","mocha":"^6.2.3","spectron":"^9.0.0","typescript":"^3.9.6","webpack":"^4.43.0","webpack-cli":"^3.3.12","webpack-node-externals":"^1.7.2"},"gitHead":"844467b251c38780dee5040b1f6fc89f33a84962","_id":"@alvarosacari/electron-pos-printer@1.2.6","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-6Gtvq9rDoHqHHcfhdekb/ZqUaylKRntMQzHcw9r4AoswfTcZlknkZnH8e4MnoiylLPnn3JpKcmtgJV+HnNtiVQ==","shasum":"1a423e9edc402ca9e78345d00523906a509f5a5b","tarball":"https://registry.npmjs.org/@alvarosacari/electron-pos-printer/-/electron-pos-printer-1.2.6.tgz","fileCount":17,"unpackedSize":222062,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaE2GlyYNedLDrEzpdND37SSNjjYOV9lK5MisoHtFGWwIhALWIpB/d1vSz3XmeUiECkbztYkVhoejz6vITUOGbhWPB"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/SzLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpm4hAAoQOENzqrStGDv9qTxFDU366GYrBhO/mu12EKln+zq1of6xng\r\nLUF+7zWLKDOHQ8Asiuaz6Y8slM+N4u/nXqH6CsHVey4pOWIz7rGqyxq/nPUH\r\nyXqd4b2TDTJ5kUJkRe1i8vuGQzff0Waso5wdG1+IHLuwhqnst99+K8/b+rKW\r\nGf4+PcpXdQekGDYrBGR7i3UPQCl8xYlGcc2pyoUP6Nl1BEeo79Ki9g5cBB7/\r\nealsdzZrpYNTEW3djscR7TMxj7gQaeptWkOZRCzZGOjMSvZz3GnzZmz7p7DU\r\ntteFPuqsWosmAw68aVUkrrIpmCrRBacydB2/aNDWXKx/lVe9R/+uqCGx44r5\r\nOGz/Fzxuu8wSkJ2kk6zzayG5WCNt7Jw4EFiwLcSL210fUluXQkT773o99wEn\r\n5vgjrmGRXQoqLUEeHPTG3I3nZRWv3tkLK7AOps2v9HyXphGCAD92Q45r9rYH\r\nlZwxQAeOIGCtnwzDbe0sZNZ8lHaO1R2884/0MFNz2r7VNPglV531+J0pwJz8\r\ntdyCgV7aQSYY6eCWzUETdHCQOolA9jrRoO9RrROMr4rgUNWsIfW+JpiZ0YU1\r\nweo0hq0A6kC4+pSdjWNKnUMyYTNSxOGS6acKWMwLaOCv3b1998b0voW1VpIs\r\nUScQ/D1uUVDvON2bxDu4Z2x5xWqP7syHDNY=\r\n=fFsU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alvarosacari","email":"alvaro.sacari@gmail.com"},"directories":{},"maintainers":[{"name":"alvarosacari","email":"alvaro.sacari@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-pos-printer_1.2.6_1660759243690_0.24906141881728994"},"_hasShrinkwrap":false},"1.2.7":{"name":"@alvarosacari/electron-pos-printer","version":"1.2.7","description":"Electron thermal 58mm printer","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"mocha","start":"npm run build && npm run demo","demo":"electron ./demo/","pack":"webpack --config ./webpack.config.js","build":"tsc","test:all":"mocha -R mocha-jenkins-reporter --timeout 20000 \"./src/test/**/*test-*.js\"","test:one":"mocha --watch -u bdd \"./src/test/**/test-*.js\" --grep \"test-login-form\""},"repository":{"type":"git","url":"git+https://github.com/alvarosacari/electron-pos-printer.git"},"keywords":["electron","printer","thermal","pos"],"author":{"name":"Hubert Formin","email":"hformin@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/alvarosacari/electron-pos-printer/issues"},"homepage":"https://github.com/alvarosacari/electron-pos-printer#readme","dependencies":{},"devDependencies":{"@types/node":"^16.9.2","chai":"^4.2.0","chai-as-promised":"^7.1.1","electron":"^14.0.1","mocha":"^6.2.3","spectron":"^9.0.0","typescript":"^3.9.6","webpack":"^4.43.0","webpack-cli":"^3.3.12","webpack-node-externals":"^1.7.2"},"gitHead":"aaa8f654c56c91b25d17f729afbd9ee748312bd0","_id":"@alvarosacari/electron-pos-printer@1.2.7","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-Jwk8DpIU+qZoN3SKmsIIMz1kJwF/FzcoDg0nUi5Ay6K3eqa8iLvK2E4c16D7p691VauDy9U5pI5adeZYrCnYRA==","shasum":"e0c0733d17ed97a5b0e248168ea6b9a5cbc28398","tarball":"https://registry.npmjs.org/@alvarosacari/electron-pos-printer/-/electron-pos-printer-1.2.7.tgz","fileCount":17,"unpackedSize":222087,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEl07m3EW5QTwVQqwW+ghF/zHAHDoS+VRKht06mefYqQAiAzZ62b3KT8CED/Xn8ZJY3ftbLnUmwePrUYpt1+ZArApQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/TBqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq13A//QR3aiGJBqfODJmlQu9Naj7yRx8m+EcNVSdrgf9ncfY1X2ZsP\r\nTw1pe6zYbbLEAS5qEXncuNxz8Q8f2pg+/8NkeODZB9Z0hnd6zCmX2TQm8W7F\r\nT6Yury0AK4wK2asmleTbOXKefOrE1HlLJzKiIkx1b9G1uBcSKm6WcvzVhJuW\r\nzjpMwZpEZDppmLpTOY8X6nyKOKWhPhbPsQST3cg2jD22N/1mGDi24K8g9j7x\r\nuAkbe19EOcwPMSKYwkLEstHv1FPh8WFiLaiPlf5pP6H2xXMzYJt1fvPquQwZ\r\nI83A72hnQTSgH68UTbZuP8ebVkCfphtlTGB+gLcXLRK9kCsjqtpeBu1NCrg+\r\nWCLUsG7NJaySiqZ2nGryu09GQQaaQ/r66Estln3nlDE/6ig7a2Uj55rxtWiz\r\nAkKuas/kHMwvRvKSJTSar3lhesoW6uvPf/VS6k4+jTBw/9vefNv6hUCAQceL\r\n4KWIvRO6u7Waw8qfU0KKg398+LBHlaxnCgUtYIJNjcLFaBRqZuegVh7bdp9u\r\nbuxcTQUt8GyVoknnHPuAxZEL2BONNKH11lKQtI3IvYpyxn2X0thd2f0/MNTQ\r\nx1VODf7GNPb1n8LM9ib6OqFnepPvTS6DA3MBf+pVYzqBkzhUSz1g9qK2BRQU\r\ncY4JRdvBU39cuVq5LYh55rGzRgwvdIlnMtk=\r\n=29jV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"alvarosacari","email":"alvaro.sacari@gmail.com"},"directories":{},"maintainers":[{"name":"alvarosacari","email":"alvaro.sacari@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/electron-pos-printer_1.2.7_1660760170345_0.2150245647957112"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-17T17:29:13.724Z","1.2.5":"2022-08-17T17:29:14.010Z","modified":"2022-08-17T18:16:10.747Z","1.2.6":"2022-08-17T18:00:43.880Z","1.2.7":"2022-08-17T18:16:10.659Z"},"maintainers":[{"name":"alvarosacari","email":"alvaro.sacari@gmail.com"}],"description":"Electron thermal 58mm printer","homepage":"https://github.com/alvarosacari/electron-pos-printer#readme","keywords":["electron","printer","thermal","pos"],"repository":{"type":"git","url":"git+https://github.com/alvarosacari/electron-pos-printer.git"},"author":{"name":"Hubert Formin","email":"hformin@gmail.com"},"bugs":{"url":"https://github.com/alvarosacari/electron-pos-printer/issues"},"license":"ISC","readme":"# Electron-pos-printer\nAn electron printer plugin, currently supports 58mm,\nrequires electron >= 4.x.x.\n\n### Installation\n```bash\n$ npm install electron-pos-printer\n$ yarn add electron-pos-printer\n```\n### Usage\n#### In main process\n```js\nconst {PosPrinter} = require(\"electron-pos-printer\");\n```\n#### In render process\n```js\nconst {PosPrinter} = require('electron').remote.require(\"electron-pos-printer\");\n```\n### Demo\n\nCheck out this [Demo](https://github.com/fssonca/electron-printer ) by [fssonca](https://github.com/fssonca)\n\n```js\nconst {PosPrinter} = require(\"electron-pos-printer\");\nconst path = require(\"path\");\n\nconst options = {\n   preview: false,               // Preview in window or print\n   width: '170px',               //  width of content body\n   margin: '0 0 0 0',            // margin of content body\n   copies: 1,                    // Number of copies to print\n   printerName: 'XP-80C',        // printerName: string, check with webContent.getPrinters()\n   timeOutPerLine: 400,\n   pageSize: { height: 301000, width: 71000 }  // page size\n}\n\nconst data = [\n   {\n     type: 'image',\n     path: path.join(__dirname, 'assets/banner.png'),     // file path\n     position: 'center',                                  // position of image: 'left' | 'center' | 'right'\n     width: '60px',                                           // width of image in px; default: auto\n     height: '60px',                                          // width of image in px; default: 50 or '50px'\n   },{\n      type: 'text',                                       // 'text' | 'barCode' | 'qrCode' | 'image' | 'table\n      value: 'SAMPLE HEADING',\n      style: `text-align:center;`,\n      css: {\"font-weight\": \"700\", \"font-size\": \"18px\"}\n   },{\n      type: 'text',                       // 'text' | 'barCode' | 'qrCode' | 'image' | 'table'\n      value: 'Secondary text',\n      style: `text-align:left;color: red;`,\n      css: {\"text-decoration\": \"underline\", \"font-size\": \"10px\"}\n   },{\n      type: 'barCode',\n      value: 'HB4587896',\n      height: 12,                     // height of barcode, applicable only to bar and QR codes\n      width: 1,                       // width of barcode, applicable only to bar and QR codes\n      displayValue: true,             // Display value below barcode\n      fontsize: 8,\n   },{\n     type: 'qrCode',\n      value: 'https://github.com/alvarosacari/electron-pos-printer',\n      height: 55,\n      width: 55,\n      style: 'margin: 10 20px 20 20px'\n    },{\n       type: 'table',\n       // style the table\n       style: 'border: 1px solid #ddd',\n       // list of the columns to be rendered in the table header\n       tableHeader: ['Animal', 'Age'],\n       // multi dimensional array depicting the rows and columns of the table body\n       tableBody: [\n           ['Cat', 2],\n           ['Dog', 4],\n           ['Horse', 12],\n           ['Pig', 4],\n       ],\n       // list of columns to be rendered in the table footer\n       tableFooter: ['Animal', 'Age'],\n       // custom style for the table header\n       tableHeaderStyle: 'background-color: #000; color: white;',\n       // custom style for the table body\n       tableBodyStyle: 'border: 0.5px solid #ddd',\n       // custom style for the table footer\n       tableFooterStyle: 'background-color: #000; color: white;',\n    },{\n       type: 'table',\n       style: 'border: 1px solid #ddd',             // style the table\n       // list of the columns to be rendered in the table header\n       tableHeader: [{type: 'text', value: 'Animal'}, {type: 'image', path: path.join(__dirname, 'icons/animal.png')}],\n       // multi dimensional array depicting the rows and columns of the table body\n       tableBody: [\n           [{type: 'text', value: 'Cat'}, {type: 'image', path: './animals/cat.jpg'}],\n           [{type: 'text', value: 'Dog'}, {type: 'image', path: './animals/dog.jpg'}],\n           [{type: 'text', value: 'Horse'}, {type: 'image', path: './animals/horse.jpg'}],\n           [{type: 'text', value: 'Pig'}, {type: 'image', path: './animals/pig.jpg'}],\n       ],\n       // list of columns to be rendered in the table footer\n       tableFooter: [{type: 'text', value: 'Animal'}, 'Image'],\n       // custom style for the table header\n       tableHeaderStyle: 'background-color: #000; color: white;',\n       // custom style for the table body\n       tableBodyStyle: 'border: 0.5px solid #ddd',\n       // custom style for the table footer\n       tableFooterStyle: 'background-color: #000; color: white;',\n    },\n]\n\nPosPrinter.print(data, options)\n .then(() => {})\n .catch((error) => {\n    console.error(error);\n  });\n\n```\n\n## Typescript\n### Usage\n\n```typescript\nimport {PosPrinter, PosPrintData, PosPrintOptions} from \"electron-pos-printer\";\nimport * as path from \"path\";\n\nconst options: PosPrintOptions = {\n   preview: false,\n   width: '170px',\n   margin: '0 0 0 0',\n   copies: 1,\n   printerName: 'XP-80C',\n   timeOutPerLine: 400,\n   pageSize: { height: 301000, width: 71000 } // page size\n}\n\nconst data: PosPrintData[] = [\n   {\n     type: 'image',\n     path: path.join(__dirname, 'assets/banner.png'),     // file path\n     position: 'center',                                  // position of image: 'left' | 'center' | 'right'\n     width: '60px',                                           // width of image in px; default: auto\n     height: '60px',                                          // width of image in px; default: 50 or '50px'\n   },{\n      type: 'text',                                       // 'text' | 'barCode' | 'qrCode' | 'image' | 'table\n      value: 'SAMPLE HEADING',\n      style: `text-align:center;`,\n      css: {\"font-weight\": \"700\", \"font-size\": \"18px\"}\n   },{\n      type: 'text',                       // 'text' | 'barCode' | 'qrCode' | 'image' | 'table'\n      value: 'Secondary text',\n      style: `text-align:left;color: red;`,\n      css: {\"text-decoration\": \"underline\", \"font-size\": \"10px\"}\n   },{\n      type: 'barCode',\n      value: 'HB4587896',\n      height: 12,                     // height of barcode, applicable only to bar and QR codes\n      width: 1,                       // width of barcode, applicable only to bar and QR codes\n      displayValue: true,             // Display value below barcode\n      fontsize: 8,\n   },{\n     type: 'qrCode',\n      value: 'https://github.com/alvarosacari/electron-pos-printer',\n      height: 55,\n      width: 55,\n      style: 'margin: 10 20px 20 20px'\n    },{\n       type: 'table',\n       // style the table\n       style: 'border: 1px solid #ddd',\n       // list of the columns to be rendered in the table header\n       tableHeader: ['Animal', 'Age'],\n       // multi dimensional array depicting the rows and columns of the table body\n       tableBody: [\n           ['Cat', 2],\n           ['Dog', 4],\n           ['Horse', 12],\n           ['Pig', 4],\n       ],\n       // list of columns to be rendered in the table footer\n       tableFooter: ['Animal', 'Age'],\n       // custom style for the table header\n       tableHeaderStyle: 'background-color: #000; color: white;',\n       // custom style for the table body\n       tableBodyStyle: 'border: 0.5px solid #ddd',\n       // custom style for the table footer\n       tableFooterStyle: 'background-color: #000; color: white;',\n    },{\n       type: 'table',\n       style: 'border: 1px solid #ddd',             // style the table\n       // list of the columns to be rendered in the table header\n       tableHeader: [{type: 'text', value: 'Animal'}, {type: 'image', path: path.join(__dirname, 'icons/animal.png')}],\n       // multi dimensional array depicting the rows and columns of the table body\n       tableBody: [\n           [{type: 'text', value: 'Cat'}, {type: 'image', path: './animals/cat.jpg'}],\n           [{type: 'text', value: 'Dog'}, {type: 'image', path: './animals/dog.jpg'}],\n           [{type: 'text', value: 'Horse'}, {type: 'image', path: './animals/horse.jpg'}],\n           [{type: 'text', value: 'Pig'}, {type: 'image', path: './animals/pig.jpg'}],\n       ],\n       // list of columns to be rendered in the table footer\n       tableFooter: [{type: 'text', value: 'Animal'}, 'Image'],\n       // custom style for the table header\n       tableHeaderStyle: 'background-color: #000; color: white;',\n       // custom style for the table body\n       tableBodyStyle: 'border: 0.5px solid #ddd',\n       // custom style for the table footer\n       tableFooterStyle: 'background-color: #000; color: white;',\n    },\n]\nPosPrinter.print(data, options)\n .then(() => {})\n .catch((error) => {\n    console.error(error);\n  });\n```\n\n## Printing options\n| Options        |           |\n| ------------- |:-------------|\n| copies     | (number) number of copies to print |\n| preview      | (boolean) preview in a window, default is false |\n| width      | (string) width of a page       |\n| margin | (string)  margin of a page, css values can be used   |\n| printerName | (string) the printer's name      |\n| timeOutPerLine | (number) timeout per line, default is 200      |\n| silent | (boolean) To print silently without printer selection pop-up, default is true |\n| pageSize | (SizeOptions) Specify the width and height of the print out page |\n\n\n\n## The Print data object\n|           |                |\n|-----------|:--------------|\n| type      | (string) 'text', 'qrCode', 'barCode', 'image', 'table' // type 'text' can be an html string |\n| value | (string) value of the current row |\n| height | (number) applicable to type barCode and qrCode |\n| width | (number)  applicable to type barCode and qrCode |\n| style | (string)  styles, css rules can be used |\n| css | (string) css rules  ex: `{\"font-size\": \"12px\"}` |\n| displayValue | (boolean)  display value of barcode below barcode |\n| position | (string) 'left', 'center', 'right' applicable to type qrCode, barCode and image |\n| path | (string) Path to the image asset |\n| tableHeader | (PosPrintTableField[], string[]) the columns to be rendered in the header of the table, works with type table |\n| tableBody | (PosPrintTableField[][], string[][]) the columns to be rendered in the body of the table, works with type table |\n| tableFooter | (PosPrintTableField[], string[]) the columns to rendered it the footer of the table, works with type table |\n| tableHeaderStyle | (string) set custom style to the table header |\n| tableBodyStyle | (string) set custom style to the table body |\n| tableFooterStyle | (string) set custom style to the table footer |\n\n## Author\n - Hubert Formin\n - hformin@gmail.com\n - Twitter: @hformin\n\n [<img src=\"https://cdn.buymeacoffee.com/buttons/default-blue.png\" alt=\"Buy Me A Coffee\" style=\"height: 51px !important;width: 217px !important;\" >](https://www.buymeacoffee.com/hformin)\n\n","readmeFilename":"README.md"}