Skip to content

Instantly share code, notes, and snippets.

View lite1979's full-sized avatar

Lite lite1979

  • QZ Industries, LLC
  • Buffalo, NY 14216
View GitHub Profile
lite@bjorn:~/tray$ ant nsis
Buildfile: /home/lite/tray/build.xml
get-host-arch:
get-target-arch:
target-os-windows:
init:
lite@bjorn:~/tray$ ant makeself
Buildfile: /home/lite/tray/build.xml
get-host-arch:
get-target-arch:
target-os-linux:
init:
^XA
^GFA,107100,107100,102,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
^XA
^GFA,107100,107100,102,0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
<script>
let defaultPrinter;
qz.security.setCertificatePromise(function(resolve, reject) {
fetch("assets/signing/digital-certificate.txt", {cache: 'no-store', headers: {'Content-Type': 'text/plain'}})
.then(function (data) {
data.ok ? resolve(data.text()) : reject(data.text());
});
[DEBUG] 2020-06-05 15:34:21,557 @ qz.ws.PrintSocketClient:?
Message: {"call":"printers.find","promise":{},"params":{"query":"xps"},"timestamp":1591385661557,"uid":"05z7b2","signAlgorithm":"SHA512","position":{"x":null,"y":null}}
[WARN] 2020-06-05 15:34:21,558 @ qz.ws.PrintSocketClient:?
Bad signature on request
[DEBUG] 2020-06-05 15:34:21,565 @ qz.common.TrayManager:?
Invalid dialog position provided: java.awt.Point[x=0,y=0], we'll center on first monitor instead
[INFO] 2020-06-05 15:34:23,387 @ qz.common.TrayManager:?
Allowed localhost to access connected printers
[DEBUG] 2020-06-05 15:34:23,388 @ qz.printer.PrintServiceMatcher:?
Searching for PrintService matching xps
[DEBUG] 2020-06-04 23:03:56,589 @ qz.ws.PrintSocketClient:?
Message: {"call":"print","promise":{},"params":{"printer":{"name":"HLL2380DW"},"options":{"bounds":null,"colorType":"grayscale","copies":1,"density":0,"duplex":false,"fallbackDensity":null,"interpolation":"bicubic","jobName":null,"legacy":false,"margins":0,"orientation":null,"paperThickness":null,"printerTray":null,"rasterize":false,"rotation":0,"scaleContent":true,"size":{"width":"4","height":"6"},"units":"in","altPrinting":false,"encoding":null,"endOfDoc":null,"perSpool":1},"data":[{"type":"pixel","format":"html","flavor":"plain","data":"<html><body> <table style=\"font-family: monospace; width: 100%\"> <tr> <td> <h2>* QZ Tray HTML Sample Print *</h2> <span style=\"color: #D00;\">Version:</span> 2.1.0+62<br/> <span style=\"color: #D00;\">Source:</span> https://qz.io/ </td> <td align=\"right\"> <img src=\"file:///opt/qz-tray/demo/assets/img/image_sample.png\" /> </td> </tr> </table></body></ht
@lite1979
lite1979 / debug.log
Created May 15, 2020 20:02
Logs from printing landscape PDF to label stock that is also landscape (W>H)
2020-05-15 15:09:38,962 [INFO] Try to find SSL properties file...
2020-05-15 15:09:39,202 [INFO] Found /Applications/QZ Tray.app/qz-tray.properties
2020-05-15 15:09:39,204 [DEBUG] Executing: [whoami]
2020-05-15 15:09:39,241 [INFO] Wrote Cert: "/var/folders/yl/qp14ff7n6zx890rjg9t78s100000gn/T/root-ca-8276558679513846169.crt"
2020-05-15 15:09:39,241 [DEBUG] Executing: [security, verify-cert, -c, /var/folders/yl/qp14ff7n6zx890rjg9t78s100000gn/T/root-ca-8276558679513846169.crt]
2020-05-15 15:09:39,250 [DEBUG] Parsed hostNames: localhost, localhost.qz.io
2020-05-15 15:09:39,250 [INFO] Email address support@qz.io found, assuming CertProvider is INTERNAL
2020-05-15 15:09:39,251 [INFO] Starting QZ Tray 2.1.0
2020-05-15 15:09:39,280 [WARN] Could not load file: /Users/lite/Library/Application Support/qz/prefs.properties, reason: /Users/lite/Library/Application Support/qz/prefs.properties (No such file or directory)
2020-05-15 15:09:40,883 [DEBUG] Using trusted root certificate: CN=qzindustries.com, O=QZ Industries, LLC
Found 15 printers
[DEBUG] 2020-04-29 21:11:34,971 @ qz.printer.PrintServiceMatcher:?
Found match: Microsoft XPS Document Writer
[DEBUG] 2020-04-29 21:11:38,451 @ qz.ws.PrintSocketClient:?
Message: {"call":"print","promise":{},"params":{"printer":{"name":"Microsoft XPS Document Writer"},"options":{"colorType":"color","copies":"1","density":"","duplex":false,"fallbackDensity":null,"interpolation":"","jobName":"","legacy":false,"margins":"0","orientation":"","paperThickness":"","printerTray":"","rasterize":true,"rotation":"0","scaleContent":true,"size":null,"units":"in","altPrinting":false,"encoding":"","endOfDoc":"","perSpool":"1"},"data":[{"type":"html","format":"plain","data":"<html> <table style=\"font-family: monospace; border: 1px;\"> <tr style=\"height: 6cm;\"> <td valign=\"top\"><h2>*&nbsp; QZ Print Plugin HTML Printing &nbsp;*</h2><span style=\"color: #F00;\">Version:</span> 2.0.11<br/><span style=\"color: #F00;\">Visit:</span> https://qz.io/</td> <td
Found 15 printers
[DEBUG] 2020-04-29 19:53:58,958 @ qz.printer.PrintServiceMatcher:?
Found match: Microsoft XPS Document Writer
[DEBUG] 2020-04-29 19:54:01,808 @ qz.ws.PrintSocketClient:?
Message: {"call":"print","promise":{},"params":{"printer":{"name":"Microsoft XPS Document Writer"},"options":{"colorType":"color","copies":"1","density":"","duplex":false,"fallbackDensity":null,"interpolation":"","jobName":"","legacy":false,"margins":"0","orientation":"","paperThickness":"","printerTray":"","rasterize":true,"rotation":"0","scaleContent":true,"size":null,"units":"in","altPrinting":false,"encoding":"","endOfDoc":"","perSpool":"1"},"data":[{"type":"html","format":"plain","data":"<html> <table style=\"font-family: monospace; border: 1px;\"> <tr style=\"height: 6cm;\"> <td valign=\"top\"><h2>*&nbsp; QZ Print Plugin HTML Printing &nbsp;*</h2><span style=\"color: #F00;\">Version:</span> 2.0.12-RC1<br/><span style=\"color: #F00;\">Visit:</span> https://qz.io/</td>