How to get the Printer Name and its dimensions (Width and height)?

Sep 10 2022 8:06 AM

Hello Team,

Could you please help me with getting the printer name and printer's dimensions (width and height) after printing the pdf file in the browser?

Here is my code reference for printing a pdf file:

$("#print_frame").get(0).contentWindow.print();

Explanation:

Using jquery, I get the PDF file path and print it in the iframe. When I click the print button, I need to know the currently connecting printer's name and the dimensions (Width and height) of the printer label.

After printing the data, is it possible to get these two values?

Thanks.