blank print

26 views
Skip to first unread message

lievano...@gmail.com

unread,
Jan 16, 2020, 8:11:32 PM1/16/20
to qz-print
The free version has some limitations, is that there is a time when the impressions are blank, I am using javascript in linux

Tres Finocchiaro

unread,
Jan 17, 2020, 12:18:53 AM1/17/20
to lievano...@gmail.com, qz-print
We're working on some bugs surrounding blank prints.  Some are fixed some are under active investigation.  Can you offer some more details?  What are you printing?  Which version are you using?


On Thu, Jan 16, 2020 at 8:11 PM <lievano...@gmail.com> wrote:
The free version has some limitations, is that there is a time when the impressions are blank, I am using javascript in linux

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/6e1d6422-4bb4-4806-9ab1-014afc446105%40googlegroups.com.

lievano...@gmail.com

unread,
Jan 17, 2020, 3:51:14 PM1/17/20
to qz-print
I am using v2.0.11-1 and I am using zpl code, if I use it once if it works, if it is used more than once the white prints come out


El jueves, 16 de enero de 2020, 23:18:53 (UTC-6), Tres Finocchiaro escribió:
We're working on some bugs surrounding blank prints.  Some are fixed some are under active investigation.  Can you offer some more details?  What are you printing?  Which version are you using?

On Thu, Jan 16, 2020 at 8:11 PM <lievano...@gmail.com> wrote:
The free version has some limitations, is that there is a time when the impressions are blank, I am using javascript in linux

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-p...@googlegroups.com.

Tres Finocchiaro

unread,
Jan 17, 2020, 3:58:21 PM1/17/20
to lievano...@gmail.com, qz-print
That should be fixable.  Can you share your code?

To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/ce1a0097-111f-446b-beba-7c71d3e7de1b%40googlegroups.com.

lievano...@gmail.com

unread,
Jan 17, 2020, 4:57:02 PM1/17/20
to qz-print
aquiiii Config {printer: {…}, setPrinter: ƒ, getPrinter: ƒ, reconfigure: ƒ, getOptions: ƒ, …}setPrinter: ƒ (newPrinter)getPrinter: ƒ ()reconfigure: ƒ (newOpts)getOptions: ƒ ()printer: {name: "LK-B24"}config: {colorType: "color", copies: 1, density: 0, duplex: false, fallbackDensity: null, …}__proto__: Object aquiii2 ["^XA^PW640^FPH^FT210,1^A0R,80,80^FB1400,3,0,C,0^FDJ…^FPH^FT80,1^A0R,40,40^FB1400,3,0,C,0^FDAsia^FS^XZ"]0: "^XA^PW640^FPH^FT210,1^A0R,80,80^FB1400,3,0,C,0^FDJenry Alonso Liévana Abadía^FS^PW640^FPH^FT165,1^A0R,40,40^FB1400,3,0,C,0^FDPing Pong Innovation^FS^PW640^FPH^FT120,1^A0R,40,40^FB1400,3,0,C,0^FDBBVA^FS^PW640^FPH^FT80,1^A0R,40,40^FB1400,3,0,C,0^FDAsia^FS^XZ"length: 1__proto__: Array(0)


Controller php
public function impresion(Request $request){
$header = array (
'Content-Type' => 'application/json; charset=UTF-8',
'charset' => 'utf-8'
);

$listasistente = array (
0 =>
array(
'id' => 1,
'nombre' => 'Jenry Alonso',
'apellidos' => 'Liévana Abadía',
'Taller' => 'BBVA',
'Aula' => 'Asia',
'empresa' => 'Ping Pong Innovation',
),
1 =>
array(
'id' => 2,
'nombre' => 'Alan',
'apellidos' => 'Quintero Velueta',
'Taller' => 'CISCO',
'Aula' => 'Tecnologico',
'empresa' => 'Desarrollo software',
),
2 =>
array(
'id' => 3,
'nombre' => 'Fernanda Grisel',
'apellidos' => 'López Balcazar',
'Taller' => 'CISCO',
'Aula' => 'Tecnologico',
'empresa' => 'Desarrollo software',
),
3 =>
array(
'id' => 3,
'nombre' => 'Wendy Mariel',
'apellidos' => 'Vazquez Mazariegos',
'Taller' => 'MEDICINA',
'Aula' => 'UNACH',
'empresa' => 'Desarrollo software',
),
);
$id_ = $request->id;
foreach($listasistente as $asistente){
if($asistente['id'] == $id_){
$asist = $asistente;
}
}
$nombre = $asist['nombre'];
$apellidos = $asist['apellidos'];
$nombre_completo = $nombre." ".$apellidos;
$empresa = $asist['empresa'];
$aula = $asist['Aula'];
$taller = $asist['Taller'];
$printer = "^XA";
$printer.= "^PW640^FPH^FT210,1^A0R,80,80^FB1400,3,0,C,0";
$printer.= "^FD".$nombre_completo."^FS";
$printer.= "^PW640^FPH^FT165,1^A0R,40,40^FB1400,3,0,C,0";
$printer.= "^FD".$empresa."^FS";
$printer.= "^PW640^FPH^FT120,1^A0R,40,40^FB1400,3,0,C,0";
$printer.= "^FD".$taller."^FS";
$printer.= "^PW640^FPH^FT80,1^A0R,40,40^FB1400,3,0,C,0";
$printer.= "^FD".$aula."^FS";
$printer.= "^XZ";

return response()->json([
'tag' => $printer,
'error'=>false,
], 200, $header, JSON_UNESCAPED_UNICODE);
}


javacript 
function Imprmir(id){
var impresora = document.getElementById("configPrinter").innerHTML;
$.ajax({
type: 'GET',
url: '/index/impresion',
data: {
'_token': $('input[name=_token]').val(),
'id': id,
}
}).done(function(data, response) {
printZPL(data.tag,impresora);
}).fail( function(jqXHR, textStatus, errorThrown) {
if (jqXHR.status === 0) {
alert('Not connect: Verify Network.');
} else if (jqXHR.status == 404) {
alert('Requested page not found [404]');
} else if (jqXHR.status == 500) {
alert(errorThrown);
} else if (textStatus === 'parsererror') {
alert('Requested JSON parse failed.');
} else if (textStatus === 'timeout') {
alert('Time out error.');
} else if (textStatus === 'abort') {
alert('Ajax request aborted.');
} else {
alert('Uncaught Error: ' + jqXHR.responseText);
}
});
console.log(id);
//qz.print(config, printData).catch(displayError);
}

function printZPL(datos,impresora) {
var lang = getUpdatedOptions().language;
console.log(lang);
return;
var config = qz.configs.create(impresora,{ encoding: 'CP1252' });
var printData = [datos];
qz.print(config, printData).catch(displayError);
console.log("aquiiii",config,"aquiii2", printData);
}

Tres Finocchiaro

unread,
Jan 17, 2020, 5:55:37 PM1/17/20
to lievano...@gmail.com, qz-print
Some notes, hopefully they help.

If they do not, please send logs over and we'll see if there's something else going on.
  • It's "Cp1252", not "CP1252" (lowercase "p").  Newer versions of java may correct this, older version of Java may not.  For that reason, please switch the code to use the lowercase "p".

  • Are you calling print() over and over in succession?  I can't tell based on the code.  If it's one large string with multiple labels, that's good and preferred.  If it's
    multiple calls to print(), that's going to cause race conditions.

  • One nice way to test a label is using http://labelary.com/viewer.html.  We have a full list of raw printer emulators here: https://qz.io/wiki/printer-emulators#raw

  • I don't see any reason for the label to be blank although your code shows you using UTF-8 characters "é", "í" but then converted to Cp1252.  This technique may work fine.  If not, I have some notes below about the special characters... 
Special character notes (ignore if they're printing fine):

If the printer supports UTF-8 and you are printing characters with acute accent marks, you should set ^CI28 in the command otherwise you may get "|-®" in place of the "é" character.

^XA
^CI28
^PW640^FPH^FT210,1^A0R,80,80^FB1400,3,0,C,0
^FDJenry Alonso Liévana Abadía^FS
^PW640^FPH^FT165,1^A0R,40,40^FB1400,3,0,C,0
^FDPing Pong Innovation^FS
^PW640^FPH^FT120,1^A0R,40,40^FB1400,3,0,C,0
^FDBBVA^FS
^PW640^FPH^FT80,1^A0R,40,40^FB1400,3,0,C,0
^FDAsia^FS
^XZ

Alternatively, if UTF-8 is not supported, you can use hex notation instead, although the online ZPL parser I'm using doesn't seem to recognize this, so my syntax may be off.

^XA
^PW640^FPH^FT210,1^A0R,80,80^FB1400,3,0,C,0
^FDJenry Alonso Li_E9vana Abad_EDa^FS
^PW640^FPH^FT165,1^A0R,40,40^FB1400,3,0,C,0
^FDPing Pong Innovation^FS
^PW640^FPH^FT120,1^A0R,40,40^FB1400,3,0,C,0
^FDBBVA^FS
^PW640^FPH^FT80,1^A0R,40,40^FB1400,3,0,C,0
^FDAsia^FS
^XZ

Here's the label using UTF-8:



--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.

lievano...@gmail.com

unread,
Jan 17, 2020, 7:02:05 PM1/17/20
to qz-print

This is the idea, keep printing blank

Captura de pantalla de 2020-01-17 17-51-38.png

Tres Finocchiaro

unread,
Jan 17, 2020, 7:10:56 PM1/17/20
to lievano...@gmail.com, qz-print
Thanks for the screenshot however the logs should come from the software...

On Fri, Jan 17, 2020, 7:02 PM <lievano...@gmail.com> wrote:

This is the idea, keep printing blank

Captura de pantalla de 2020-01-17 17-51-38.png

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.

Tres Finocchiaro

unread,
Jan 20, 2020, 12:17:20 PM1/20/20
to lievano...@gmail.com, qz-print
Hi,

Just checking in to see if you were able to get the logs from the software.

lievano...@gmail.com

unread,
Jan 20, 2020, 4:00:35 PM1/20/20
to qz-print
Hi, yes I found
2020-01-20 14:50:34,343 [DEBUG] Received new certificate from connection through 36196
2020-01-20 14:50:34,409 [DEBUG] Finding preferred Gtk version...
2020-01-20 14:50:34,410 [DEBUG] Found Gtk2
2020-01-20 14:50:34,411 [DEBUG] Initialized Gtk
2020-01-20 14:50:34,411 [DEBUG] Gtk 2.10+ detected, calling "gdk_screen_get_resolution"
2020-01-20 14:50:34,427 [DEBUG] Calculated dialog centered at: java.awt.Point[x=807,y=465]
2020-01-20 14:50:36,261 [INFO] Denied localhost to connect to QZ Tray
2020-01-20 14:50:36,267 [INFO] Connection closed: 1006 - Disconnected
2020-01-20 14:50:36,267 [INFO] Closing all communication channels for localhost
2020-01-20 14:50:50,154 [INFO] Connection opened from /0:0:0:0:0:0:0:1:36332 on socket port 8182
2020-01-20 14:50:50,199 [DEBUG] Message: {"call":"getVersion","promise":{},"timestamp":1579553450190,"uid":"hm5hx1","signAlgorithm":"SHA512","position":{"x":993.5,"y":553.5}}
2020-01-20 14:50:50,199 [DEBUG] Message: 
2020-01-20 14:50:50,204 [DEBUG] Received new certificate from connection through 36332
2020-01-20 14:50:50,205 [DEBUG] Finding preferred Gtk version...
2020-01-20 14:50:50,206 [DEBUG] Found Gtk2
2020-01-20 14:50:50,207 [DEBUG] Initialized Gtk
2020-01-20 14:50:50,207 [DEBUG] Gtk 2.10+ detected, calling "gdk_screen_get_resolution"
2020-01-20 14:50:50,207 [DEBUG] Calculated dialog centered at: java.awt.Point[x=812,y=465]
2020-01-20 14:50:51,405 [INFO] Allowed localhost to connect to QZ Tray
2020-01-20 14:50:51,407 [DEBUG] Message: {"call":"getVersion","promise":{},"timestamp":1579553451407,"uid":"9pibxx","signAlgorithm":"SHA512","position":{"x":993.5,"y":553.5}}
2020-01-20 14:50:51,408 [WARN] Bad signature on request
2020-01-20 14:51:05,736 [DEBUG] Message: {"call":"printers.find","promise":{},"params":{"query":"LK-B24"},"timestamp":1579553465732,"uid":"3jbpxx","signAlgorithm":"SHA512","position":{"x":993.5,"y":553.5}}
2020-01-20 14:51:05,737 [WARN] Bad signature on request
2020-01-20 14:51:05,762 [DEBUG] Finding preferred Gtk version...
2020-01-20 14:51:05,763 [DEBUG] Found Gtk2
2020-01-20 14:51:05,763 [DEBUG] Initialized Gtk
2020-01-20 14:51:05,763 [DEBUG] Gtk 2.10+ detected, calling "gdk_screen_get_resolution"
2020-01-20 14:51:05,763 [DEBUG] Calculated dialog centered at: java.awt.Point[x=804,y=465]
2020-01-20 14:51:06,852 [INFO] Allowed localhost to access connected printers
2020-01-20 14:51:06,854 [DEBUG] Searching for PrintService matching LK-B24
2020-01-20 14:51:07,029 [DEBUG] Found 2 printers
2020-01-20 14:51:07,030 [DEBUG] Found match: LK-B24
2020-01-20 14:51:09,148 [DEBUG] Message: {"call":"print","promise":{},"params":{"printer":{"name":"LK-B24"},"options":{"colorType":"color","copies":"1","density":"","duplex":false,"fallbackDensity":null,"interpolation":"","jobName":"","legacy":false,"margins":"0","orientation":"","paperThickness":"","printerTray":"","rasterize":false,"rotation":"0","scaleContent":true,"size":null,"units":"in","altPrinting":false,"encoding":"","endOfDoc":"","perSpool":"1"},"data":["^XA^CI28^PW640^FPH^FT250,300^A0R,80,80^FB600,3,0,C,0^FD Jenry Alonso Liévano Abadía2.0.11-1^FS^XZ"]},"timestamp":1579553469143,"uid":"u8gah1","signAlgorithm":"SHA512","position":{"x":993.5,"y":553.5}}
2020-01-20 14:51:09,149 [WARN] Bad signature on request
2020-01-20 14:51:09,162 [DEBUG] Finding preferred Gtk version...
2020-01-20 14:51:09,162 [DEBUG] Found Gtk2
2020-01-20 14:51:09,163 [DEBUG] Initialized Gtk
2020-01-20 14:51:09,163 [DEBUG] Gtk 2.10+ detected, calling "gdk_screen_get_resolution"
2020-01-20 14:51:09,163 [DEBUG] Calculated dialog centered at: java.awt.Point[x=812,y=465]
2020-01-20 14:51:10,188 [INFO] Allowed localhost to print to LK-B24
2020-01-20 14:51:10,247 [DEBUG] Allowing 8 simultaneous processors based on memory available (4175 MB)
2020-01-20 14:51:10,250 [DEBUG] Using qz.printer.action.PrintRaw to print
2020-01-20 14:51:10,250 [DEBUG] Searching for PrintService matching LK-B24
2020-01-20 14:51:10,363 [DEBUG] Found 2 printers
2020-01-20 14:51:10,363 [DEBUG] Found match: LK-B24
2020-01-20 14:51:10,372 [WARN] Cannot read  as a double for density, using default
2020-01-20 14:51:10,372 [WARN] Cannot read  as a valid value for interpolation, using default
2020-01-20 14:51:10,374 [WARN] Cannot read  as a valid value for orientation, using default
2020-01-20 14:51:10,375 [WARN] Cannot read  as a double for paperThickness, using default
2020-01-20 14:51:10,425 [DEBUG] Executing: [lpstat, -a]
2020-01-20 14:51:10,483 [DEBUG] Executing: [lpoptions, -p, LK-B24, -l]
2020-01-20 14:51:10,623 [DEBUG] Executing: [lpoptions, -p, Unknown, -l]
2020-01-20 14:51:10,769 [WARN] Cannot read null as a double for fallbackDensity, using default
2020-01-20 14:51:10,810 [DEBUG] PrintEvent on sun.print.UnixPrintJob@756ea8d9
2020-01-20 14:51:10,820 [DEBUG] PrintEvent on sun.print.UnixPrintJob@756ea8d9
2020-01-20 14:51:10,820 [DEBUG] PrintEvent on sun.print.UnixPrintJob@756ea8d9
2020-01-20 14:51:10,820 [DEBUG] PrintEvent on sun.print.UnixPrintJob@756ea8d9
2020-01-20 14:51:10,821 [INFO] Printing complete
2020-01-20 14:51:40,070 [INFO] Connection closed: 1005 - null
2020-01-20 14:51:40,071 [INFO] Closing all communication channels for localhost
2020-01-20 14:51:40,075 [WARN] The web socket server is no longer running
2020-01-20 14:51:53,599 [DEBUG] Executing: [gsettings, get, org.gnome.desktop.interface, gtk-theme]
2020-01-20 14:51:53,609 [DEBUG] Executing: [gsettings, get, org.gnome.desktop.interface, gtk-theme]
2020-01-20 14:51:53,976 [DEBUG] Executing: [uname, -a]
2020-01-20 14:51:53,978 [DEBUG] Executing: [gconftool-2, --get, /desktop/gnome/shell/windows/theme]
2020-01-20 14:51:53,983 [DEBUG] Executing: [grep, dark_bg_color, /usr/share/themes/Ambiance/gtk-3.0/gtk.css]
2020-01-20 14:51:53,984 [DEBUG] Executing: [grep, dark_bg_color, /usr/share/themes/Ambiance/gtk-3.0/gtk-main.css]
2020-01-20 14:51:54,009 [INFO] Main properties file /opt/lampp/htdocs/imprimironline/qz-tray.properties
2020-01-20 14:51:54,010 [WARN] Failed to load properties file!
2020-01-20 14:51:54,010 [WARN] Unable to determine path to certificate. Secure websockets will not function on certain browsers.
2020-01-20 14:51:54,188 [INFO] Main properties file /opt/lampp/htdocs/imprimironline/qz-tray.properties
2020-01-20 14:51:54,189 [WARN] Failed to load properties file!
2020-01-20 14:51:54,238 [DEBUG] Using trusted root certificate: CN=qzindustries.com, O=QZ Industries, LLC (8ef2c0b2fe3f75754245b3fb9d54c0caa1b46bb3)
2020-01-20 14:51:54,238 [INFO] Loading CRL from https://crl.qz.io
2020-01-20 14:51:54,347 [DEBUG] Finding preferred Gtk version...
2020-01-20 14:51:54,348 [DEBUG] Found Gtk2
2020-01-20 14:51:54,404 [DEBUG] Initialized Gtk
2020-01-20 14:51:54,405 [DEBUG] Gtk 2.10+ detected, calling "gdk_screen_get_resolution"
2020-01-20 14:51:54,418 [INFO] Main properties file /opt/lampp/htdocs/imprimironline/qz-tray.properties
2020-01-20 14:51:54,419 [WARN] Failed to load properties file!
2020-01-20 14:51:54,455 [WARN] Could not start secure WebSocket
2020-01-20 14:51:54,754 [DEBUG] Checking for a running instance of QZ Tray on port 8283
2020-01-20 14:51:54,857 [INFO] Successfully loaded 2 CRL entries from https://crl.qz.io
2020-01-20 14:51:54,886 [DEBUG] Checking for a running instance of QZ Tray on port 8384
2020-01-20 14:51:54,895 [WARN] WebSocket error
java.net.ConnectException: Conexión rehusada
at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
at org.eclipse.jetty.io.SelectorManager.finishConnect(SelectorManager.java:340)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.processConnect(SelectorManager.java:675)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.processKey(SelectorManager.java:644)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.select(SelectorManager.java:611)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.run(SelectorManager.java:549)
at org.eclipse.jetty.util.thread.NonBlockingThread.run(NonBlockingThread.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.base/java.lang.Thread.run(Thread.java:834)
2020-01-20 14:51:54,988 [DEBUG] Checking for a running instance of QZ Tray on port 8485
2020-01-20 14:51:54,991 [WARN] WebSocket error
java.net.ConnectException: Conexión rehusada
at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
at org.eclipse.jetty.io.SelectorManager.finishConnect(SelectorManager.java:340)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.processConnect(SelectorManager.java:675)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.processKey(SelectorManager.java:644)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.select(SelectorManager.java:611)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.run(SelectorManager.java:549)
at org.eclipse.jetty.util.thread.NonBlockingThread.run(NonBlockingThread.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.base/java.lang.Thread.run(Thread.java:834)
2020-01-20 14:51:55,076 [WARN] WebSocket error
java.net.ConnectException: Conexión rehusada
at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
at org.eclipse.jetty.io.SelectorManager.finishConnect(SelectorManager.java:340)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.processConnect(SelectorManager.java:675)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.processKey(SelectorManager.java:644)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.select(SelectorManager.java:611)
at org.eclipse.jetty.io.SelectorManager$ManagedSelector.run(SelectorManager.java:549)
at org.eclipse.jetty.util.thread.NonBlockingThread.run(NonBlockingThread.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.base/java.lang.Thread.run(Thread.java:834)
2020-01-20 14:51:55,081 [INFO] Server started on port(s) 8182
2020-01-20 14:52:26,051 [INFO] Connection opened from /0:0:0:0:0:0:0:1:37158 on socket port 8182
2020-01-20 14:52:26,070 [DEBUG] Received new certificate from connection through 37158
2020-01-20 14:52:26,133 [DEBUG] Finding preferred Gtk version...
2020-01-20 14:52:26,133 [DEBUG] Found Gtk2
2020-01-20 14:52:26,133 [DEBUG] Initialized Gtk
2020-01-20 14:52:26,133 [DEBUG] Gtk 2.10+ detected, calling "gdk_screen_get_resolution"
2020-01-20 14:52:26,141 [DEBUG] Calculated dialog centered at: java.awt.Point[x=807,y=465]
2020-01-20 14:52:36,150 [INFO] Allowed localhost to connect to QZ Tray
2020-01-20 14:52:36,157 [DEBUG] Message: {"call":"getVersion","promise":{},"timestamp":1579553556154,"uid":"b5n6s2","signAlgorithm":"SHA512","position":{"x":993.5,"y":553.5}}
2020-01-20 14:52:36,158 [WARN] Bad signature on request
2020-01-20 14:52:52,208 [DEBUG] Message: {"call":"printers.find","promise":{},"params":{"query":"LK-B24"},"timestamp":1579553572204,"uid":"ghmlc9","signAlgorithm":"SHA512","position":{"x":993.5,"y":553.5}}
2020-01-20 14:52:52,209 [WARN] Bad signature on request
2020-01-20 14:52:52,239 [DEBUG] Finding preferred Gtk version...
2020-01-20 14:52:52,240 [DEBUG] Found Gtk2
2020-01-20 14:52:52,240 [DEBUG] Initialized Gtk
2020-01-20 14:52:52,241 [DEBUG] Gtk 2.10+ detected, calling "gdk_screen_get_resolution"
2020-01-20 14:52:52,241 [DEBUG] Calculated dialog centered at: java.awt.Point[x=804,y=465]
2020-01-20 14:52:53,453 [INFO] Allowed localhost to access connected printers
2020-01-20 14:52:53,455 [DEBUG] Searching for PrintService matching LK-B24
2020-01-20 14:52:53,613 [DEBUG] Found 2 printers
2020-01-20 14:52:53,614 [DEBUG] Found match: LK-B24
2020-01-20 14:54:06,285 [DEBUG] Message: {"call":"print","promise":{},"params":{"printer":{"name":"LK-B24"},"options":{"colorType":"color","copies":"1","density":"","duplex":false,"fallbackDensity":null,"interpolation":"","jobName":"","legacy":false,"margins":"0","orientation":"","paperThickness":"","printerTray":"","rasterize":false,"rotation":"0","scaleContent":true,"size":null,"units":"in","altPrinting":false,"encoding":"","endOfDoc":"","perSpool":"1"},"data":["^XA^CI28^PW640^FPH^FT250,300^A0R,80,80^FB600,3,0,C,0^FD Jenry Alonso Liévano Abadía2.0.11-1^FS^XZ"]},"timestamp":1579553646282,"uid":"hx34e9","signAlgorithm":"SHA512","position":{"x":993.5,"y":553.5}}
2020-01-20 14:54:06,286 [WARN] Bad signature on request
2020-01-20 14:54:06,291 [DEBUG] Finding preferred Gtk version...
2020-01-20 14:54:06,292 [DEBUG] Found Gtk2
2020-01-20 14:54:06,292 [DEBUG] Initialized Gtk
2020-01-20 14:54:06,292 [DEBUG] Gtk 2.10+ detected, calling "gdk_screen_get_resolution"
2020-01-20 14:54:06,292 [DEBUG] Calculated dialog centered at: java.awt.Point[x=812,y=465]
2020-01-20 14:54:07,521 [INFO] Allowed localhost to print to LK-B24
2020-01-20 14:54:07,578 [DEBUG] Allowing 8 simultaneous processors based on memory available (4175 MB)
2020-01-20 14:54:07,584 [DEBUG] Using qz.printer.action.PrintRaw to print
2020-01-20 14:54:07,584 [DEBUG] Searching for PrintService matching LK-B24
2020-01-20 14:54:07,691 [DEBUG] Found 2 printers
2020-01-20 14:54:07,692 [DEBUG] Found match: LK-B24
2020-01-20 14:54:07,694 [WARN] Cannot read  as a double for density, using default
2020-01-20 14:54:07,695 [WARN] Cannot read  as a valid value for interpolation, using default
2020-01-20 14:54:07,695 [WARN] Cannot read  as a valid value for orientation, using default
2020-01-20 14:54:07,695 [WARN] Cannot read  as a double for paperThickness, using default
2020-01-20 14:54:07,721 [DEBUG] Executing: [lpstat, -a]
2020-01-20 14:54:07,832 [DEBUG] Executing: [lpoptions, -p, LK-B24, -l]
2020-01-20 14:54:07,944 [DEBUG] Executing: [lpoptions, -p, Unknown, -l]
2020-01-20 14:54:08,006 [WARN] Cannot read null as a double for fallbackDensity, using default
2020-01-20 14:54:08,021 [DEBUG] PrintEvent on sun.print.UnixPrintJob@25f3491b
2020-01-20 14:54:08,057 [DEBUG] PrintEvent on sun.print.UnixPrintJob@25f3491b
2020-01-20 14:54:08,057 [DEBUG] PrintEvent on sun.print.UnixPrintJob@25f3491b
2020-01-20 14:54:08,057 [DEBUG] PrintEvent on sun.print.UnixPrintJob@25f3491b
2020-01-20 14:54:08,057 [INFO] Printing complete

Tres Finocchiaro

unread,
Jan 20, 2020, 4:45:18 PM1/20/20
to lievano...@gmail.com, qz-print
Did the blank page occur in these logs?  Besides HTTPS support being broken -- evident by the missing qz-tray.properties file --  they look rather normal.

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.

lievano...@gmail.com

unread,
Jan 20, 2020, 5:22:43 PM1/20/20
to qz-print
yes, keep blank, if you already add the file qz-tray.properties

Tres Finocchiaro

unread,
Jan 20, 2020, 6:04:37 PM1/20/20
to lievano...@gmail.com, qz-print

On Mon, Jan 20, 2020 at 5:22 PM <lievano...@gmail.com> wrote:
yes, keep blank, if you already add the file qz-tray.properties

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.

lievano...@gmail.com

unread,
Jan 21, 2020, 1:32:20 PM1/21/20
to qz-print
already apply what I indicated and add a parameter more {encoding: ''}, and it seems that if one part worked, because the first part is not shown, but if the other part of the code is printed


El lunes, 20 de enero de 2020, 17:04:37 (UTC-6), Tres Finocchiaro escribió:
Can you add a configuration option, altPrinting: true?

On Mon, Jan 20, 2020 at 5:22 PM <lievano...@gmail.com> wrote:
yes, keep blank, if you already add the file qz-tray.properties

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-p...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages