Closed commuter77 closed 9 years ago
@commuter77, please append and print these in a serial fashion.
This requires you to wait for qzDonePrinting()
to be fired, then you can append the second page, often done using global counters.
-Tres
@tresf it seems that qzDonePrinting() will only be fired when qz.print() is called. I was here last time suggested to use qz.append64 to append all my docs together. then use qz.print() to print all. not idea why the problem happened if I qz.append64(base64Element1.value);
qz.append64(base64Element2.value); while I use
qz.append64(base64Element1.value);
qz.append64(base64Element2.value);
qz.append64(base64Element3.value);
or qz.append64(base64Element2.value);
qz.append64(base64Element3.value); it works fine for me.
@commuter77
I was here last time suggested to use qz.append64 to append all my docs together. then use qz.print() to print all.
Not for PDFs, I never would have recommended that. PDFs generally can't be appended as raw. Some printers are able to decode the raw PDF file and print, but this often causes problems as the PDF data isn't always parsed properly by the printer.
I would instead try using the PDF example in sample.html. Once you have that working to print 3 PDFs in a row, then we can work on the base64 portion.
In each event, qzDonePrinting()
will be fired once the spooler has received the job. If you don't wait for this, it won't work.
do you mean when I can qz.append64(), qzDonePrinting() will be fired ? If so, is there a way I can ensure it is fired before I call qz.append64() again?
but I don't see qzDonePrinting() in the log until I call qz.print()
do you mean when I can qz.append64(), qzDonePrinting() will be fired ?
No, it is fired after you call print() or printPS().
If so, is there a way I can ensure it is fired before I call qz.append64() again?
Yes, just make a function called qzDonePrinting() and use it to iterate a counter.
Closing, this was a support issue, not a bug.
I 've 3 pdf docs to print. my pdf docs content are prepared as base64 text already. here is my function.
but I get only 1 page.
is there a problem with qz.append64?