Not able to print pdf with multiple pages using qz 2.1.6

179 views
Skip to first unread message

Shubham Bhadale

unread,
Oct 1, 2022, 6:41:55 AM10/1/22
to qz-print
Hello QZ Tray Team,
     I successfully implimented qz-tray in PHP and its working fine with single page pdf. But when I pass multipage pdf its giving some errors in console which attached to this mail. 
     Please help me to solve this issue. Thanks in advanced.

Thankful,
Shubham Bhadale
qz-trey.png

Tres Finocchiaro

unread,
Oct 1, 2022, 11:56:53 AM10/1/22
to Shubham Bhadale, qz-print
Hi,

I have replied to this in another email conversation. 


--
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/b0c40a19-e57e-4cba-a93b-4308ef325f6cn%40googlegroups.com.
Message has been deleted

Shubham Bhadale

unread,
Oct 4, 2022, 1:32:57 AM10/4/22
to qz-print
  Hello sir,
                I attached two files with this mail one of them is of text file and second one is 2 pages pdf which we want to print using qz-print.
Thank You.

print_documents.txt
sample.pdf

Shubham Bhadale

unread,
Oct 10, 2022, 3:07:55 AM10/10/22
to qz-print
Hello sir,
         Few days ago, I disscussed one issue in our qz-trey conversation group but , still not getting any response from your side. Please help me out to solve this issue and I already attach my code in previous email. 
          I look forward to hearing from You. Thank You.

Lite Finocchiaro

unread,
Oct 10, 2022, 9:51:12 AM10/10/22
to Shubham Bhadale, qz-print
Shubham:

Tres replied to the other email thread you started, hence this reply saying "I have replied to this in another email conversation."

You started two email threads for the same issue, then disregarded our reply in the other thread. I will quote his reply here so we can move forward.

Hi,

Please can you provide full logs (you can send them to sup...@qz.io if you do not wish to share them publicly)

-Tres


Click QZ-Tray > Advanced > Diagnostic > Zip Logs to Desktop, attach in reply.

Please also share:

-Operating System

-Printer Make and Model

We look forward to your reply.

Kind regards,

Lite Finocchiaro
VP, QZ Industries

--
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,
Oct 10, 2022, 11:23:46 AM10/10/22
to Lite Finocchiaro, Lite Finocchiaro, Shubham Bhadale, qz-print

Shubham Bhadale

unread,
Oct 11, 2022, 3:49:54 AM10/11/22
to qz-print
Hello Lite Finocchiaro, 
             Really sorry for this misunderstanding and I attached log zip to this mail 
Thank you

Operating System - Windows
qz-2022-10-11_1308.zip

Lite Finocchiaro

unread,
Oct 11, 2022, 10:01:20 AM10/11/22
to Shubham Bhadale, qz-print
Shubham:

Thank you for the logs. I believe there is a problem in retrieving the file as a two-page document from your source. I cannot view the contents of your PDF URL, but it looks to be a localhost version of Wordpress; is that correct?

After each print, it shows one file being parsed for printing, whereas in my tests with your PDF, the logs clearly say "Parsed 2 files for printing"

To confirm, I would encourage you to view the source data from a browser; this should reveal that a one-page PDF is being supplied instead of a 2-page PDF. Unfortunately, I cannot advise on why this is happening with your localhost server, or how to fix it.

If you use the file path, I think you will find that both pages print as expected.

Note:  When trying to print to the AnyDesk printer on my machine, I was unsuccessful. I do not use this method for printing, but I have it installed since we occasionally use AnyDesk for support calls.

Please let me know if you can confirm.

Kind regards,

Lite Finocchiaro



Lite Finocchiaro

unread,
Oct 11, 2022, 6:01:07 PM10/11/22
to Shubham Bhadale, qz-print
Shubham:

I'm sorry; I should have noticed this earlier. Based on your print_documents.txt, you appear to be calling qz.print in a loop.

Kind regards,

Tres Finocchiaro

unread,
Oct 12, 2022, 10:03:12 PM10/12/22
to Lite Finocchiaro, Shubham Bhadale, qz-print
Clarification... 

Based on your print_documents.txt, you appear to be calling qz.print in a loop.

Based on your print_documents.txt, you appear to be calling qz.print in a loop, which is not supported for asynchronous operations (such as qz.print(...)).

Instead, you may provide multiple data array elements to the qz.print() function, or -- a bit more complex -- use a proper promise chain.

-Tres
 


Shubham Bhadale

unread,
Oct 13, 2022, 7:28:55 AM10/13/22
to Tres Finocchiaro, Lite Finocchiaro, qz-print
Hello Lite Finocchiaro,
    Thank You for your support. We just resolved this problem as guidance given by Tres Finocchiaro. Now I am using Promise Loop And it's working fine for multi page PDF's.
    Thank you again to both of you guys. 
Reply all
Reply to author
Forward
0 new messages