Add custom QZ Tray fork with pairing key authentication
- Custom fork of QZ Tray 2.2.x with certificate validation bypassed - Implemented pairing key (HMAC) authentication as replacement - Modified files: PrintSocketClient.java (certificate check disabled) - New files: PairingAuth.java, PairingConfigDialog.java - Excluded build artifacts (out/, lib/javafx*) from repository - Library JARs included for dependency management
This commit is contained in:
109
tray/test/qz/ws/substitutions/resources/substitutions.json
Normal file
109
tray/test/qz/ws/substitutions/resources/substitutions.json
Normal file
@@ -0,0 +1,109 @@
|
||||
[
|
||||
{
|
||||
"use":{
|
||||
"config": {
|
||||
"size": {
|
||||
"width": 100,
|
||||
"height": 150
|
||||
},
|
||||
"units": "mm"
|
||||
}
|
||||
},
|
||||
"for": {
|
||||
"config": {
|
||||
"size": {
|
||||
"width": 4,
|
||||
"height": 6
|
||||
},
|
||||
"units": "in"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"use": {
|
||||
"printer": "PDF"
|
||||
},
|
||||
"for": {
|
||||
"printer": "PDFwriter"
|
||||
}
|
||||
},
|
||||
{
|
||||
"use": {
|
||||
"data": {
|
||||
"options": {
|
||||
"pageWidth": 8.5,
|
||||
"pageHeight": 14
|
||||
}
|
||||
}
|
||||
},
|
||||
"for": {
|
||||
"data": {
|
||||
"options": {
|
||||
"pageWidth": "8.5",
|
||||
"pageHeight": "11"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"use": {
|
||||
"query": "pdf"
|
||||
},
|
||||
"for": {
|
||||
"query": "zzz"
|
||||
}
|
||||
},
|
||||
{
|
||||
"use": {
|
||||
"config": {
|
||||
"copies": 3
|
||||
}
|
||||
},
|
||||
"for": {
|
||||
"config": {
|
||||
"copies": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"use": {
|
||||
"printer": "PDFwriter"
|
||||
},
|
||||
"for": {
|
||||
"caseSensitive": true,
|
||||
"printer": "xps document writer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"use": {
|
||||
"data": {
|
||||
"data": "https://yahoo.com"
|
||||
}
|
||||
},
|
||||
"for": {
|
||||
"data": {
|
||||
"data": "https://demo.qz.io/assets/pdf_sample.pdf"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"use": {
|
||||
"printer": "ZDesigner"
|
||||
},
|
||||
"for": {
|
||||
"data": [ "^XA\n" ]
|
||||
}
|
||||
},
|
||||
{
|
||||
"use": {
|
||||
"data": {
|
||||
"type": "PIXEL"
|
||||
}
|
||||
},
|
||||
"for": {
|
||||
"data": {
|
||||
"type": "pixel"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user