ipp-protocol

Print to specific printer (IPP URI) in Java

别说谁变了你拦得住时间么 提交于 2019-12-17 08:59:52
问题 Is there any way in Java to print to a specific IPP printer? All of the sample code and tutorials I've found focus on how to print a particular type of document, using something like the following: DocFlavor flavor = DocFlavor.INPUT_STREAM.POSTSCRIPT; PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet(); aset.add(MediaSizeName.ISO_A4); PrintService[] pservices = PrintServiceLookup.lookupPrintServices(flavor, aset); if (pservices.length > 0) { DocPrintJob pj = pservices[0]

Is there a way to send a print task to an IPP-enabled network printer using http?

时光总嘲笑我的痴心妄想 提交于 2019-12-13 06:41:24
问题 I'm working on an Android print service application which is supposed to allow the user to do the following: browse through the phone's internal storage and send the selected file to an IPP-enabled printer to print. I've combed the net for the past few days, but i've only found one solution [How to use ipp(Internet Printing Protocol) with HTTP to print file in android? that somewhat makes sense to me. However, i've no idea how to go on from here on, besides knowing that a http put request

Using FindNextPrinterChangeNotification fails on IPP printers

不羁的心 提交于 2019-12-12 01:32:10
问题 Using the FindNextPrinterChangeNotification function from a native C application, it works as expected when using a local printer. I.e. when being printed, the FindNextPrinterChangeNotification function correctly returns the handle of a printer job that is being printed to a local printer. However, when printing to an IPP printer (i.e. a printer that connects through the Internet Printing Protocol), the FindNextPrinterChangeNotification function call fails and GetLastError() returns ERROR

How to use ipp(Internet Printing Protocol) with HTTP to print file in android?

一曲冷凌霜 提交于 2019-11-30 15:29:59
问题 I want to print file from android application.For the same , after searching on google,I found some useful information that i will have to use IPP (Internet Printing Protocol) with HTTP. And I am new to ipp but i have worked with HTTP. So can anybody help me for the same ? Can anybody give me some useful information OR links? Thanks in advance ? 回答1: You need to make an HTTP PUT request with some special features, you must: use the port 631 instead of 80 (unless it's explicitly specified of

How to use ipp(Internet Printing Protocol) with HTTP to print file in android?

做~自己de王妃 提交于 2019-11-30 14:10:26
I want to print file from android application.For the same , after searching on google,I found some useful information that i will have to use IPP (Internet Printing Protocol) with HTTP. And I am new to ipp but i have worked with HTTP. So can anybody help me for the same ? Can anybody give me some useful information OR links? Thanks in advance ? You need to make an HTTP PUT request with some special features, you must: use the port 631 instead of 80 (unless it's explicitly specified of course). rewrite the url in the header (i.e. ipp:// => http:// ). protocol ID is IPP/1.1 . you must

Printing using IPP without drivers (IPP Client)

Deadly 提交于 2019-11-28 05:08:37
I have a device/appliance that you cannot install drivers for. I would like to add the ability to support network/IPP/AirPrint printers by having the user add the IP Addresses. Since I am not printing through windows (which would use the IPP), how do I use IPP myself? Is there a c# client (or any windows library) out there that allows you to interact with IPP printers with the IPP protocol? There are a few IPP-Client implementations and IPP Libraries available for different programming languages (java/php/python). A practical solution could be to use the ipptool available at http://cups.org

Print to specific printer (IPP URI) in Java

微笑、不失礼 提交于 2019-11-27 07:08:12
Is there any way in Java to print to a specific IPP printer? All of the sample code and tutorials I've found focus on how to print a particular type of document, using something like the following: DocFlavor flavor = DocFlavor.INPUT_STREAM.POSTSCRIPT; PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet(); aset.add(MediaSizeName.ISO_A4); PrintService[] pservices = PrintServiceLookup.lookupPrintServices(flavor, aset); if (pservices.length > 0) { DocPrintJob pj = pservices[0].createPrintJob(); try { FileInputStream fis = new FileInputStream("test.ps"); Doc doc = new SimpleDoc(fis,

Printing using IPP without drivers (IPP Client)

 ̄綄美尐妖づ 提交于 2019-11-26 19:39:04
问题 I have a device/appliance that you cannot install drivers for. I would like to add the ability to support network/IPP/AirPrint printers by having the user add the IP Addresses. Since I am not printing through windows (which would use the IPP), how do I use IPP myself? Is there a c# client (or any windows library) out there that allows you to interact with IPP printers with the IPP protocol? 回答1: There are a few IPP-Client implementations and IPP Libraries available for different programming