Giter VIP home page Giter VIP logo

Comments (6)

williamkapke avatar williamkapke commented on August 11, 2024

Interesting. Your printer is using an unknown tag. I wonder what it is...?

What does it log?

from ipp.

jwoertink avatar jwoertink commented on August 11, 2024

it says "19 not handled"

from ipp.

williamkapke avatar williamkapke commented on August 11, 2024

Any chance you can post the raw response data (in hex)?

Maybe just add a console.log(buff.toString('hex')) here and run it again: https://github.com/williamkapke/ipp/blob/master/lib/parser.js#L11

from ipp.

jwoertink avatar jwoertink commented on August 11, 2024

Here's the output

020000000179a53e01470012617474726962757465732d6368617273657400057574662d3848001b617474726962757465732d6e61747572616c2d6c616e67756167650005656e2d7573042100126d61726b65722d6368616e67652d74696d65000454ac7e923100147072696e7465722d63757272656e742d74696d65000b07df0107122c22002b00001300137072696e7465722d646e732d73642d6e616d6500004200147072696e7465722d6572726f722d706f6c696379000c73746f702d7072696e74657242001e7072696e7465722d6572726f722d706f6c6963792d737570706f72746564000961626f72742d6a6f62420000001172657472792d63757272656e742d6a6f62420000000972657472792d6a6f62420000000c73746f702d7072696e74657245000d7072696e7465722d69636f6e73002d687474703a2f2f6c6f63616c686f73743a3633312f69636f6e732f4c616e6965725f4d505f333530302e706e672200197072696e7465722d69732d616363657074696e672d6a6f62730001012200117072696e7465722d69732d7368617265640001004500117072696e7465722d6d6f72652d696e666f002c687474703a2f2f6c6f63616c686f73743a3633312f7072696e746572732f4c616e6965725f4d505f333530304200117072696e7465722d6f702d706f6c696379000764656661756c7423000d7072696e7465722d73746174650004000000032100197072696e7465722d73746174652d6368616e67652d74696d65000454ac7e924100157072696e7465722d73746174652d6d657373616765001c446174612066696c652073656e74207375636365737366756c6c792e4400157072696e7465722d73746174652d726561736f6e7300046e6f6e6523000c7072696e7465722d74797065000400a0304c21000f7072696e7465722d75702d74696d65000454ad7e924500157072696e7465722d7572692d737570706f72746564002b6970703a2f2f6c6f63616c686f73743a3633312f7072696e746572732f4c616e6965725f4d505f333530302100107175657565642d6a6f622d636f756e7400040000000144001c7572692d61757468656e7469636174696f6e2d737570706f72746564001472657175657374696e672d757365722d6e616d654400167572692d73656375726974792d737570706f7274656400046e6f6e6542000c7072696e7465722d6e616d65000e4c616e6965725f4d505f333530304100107072696e7465722d6c6f636174696f6e00074b69746368656e41000c7072696e7465722d696e666f000e4c616e696572204d50203335303045000c7072696e7465722d75756964002d75726e3a757569643a36363861356465662d326535622d333337352d353134622d3530656539323133616330332100106a6f622d71756f74612d706572696f6400040000000021000b6a6f622d6b2d6c696d697400040000000021000e6a6f622d706167652d6c696d69740004000000004200126a6f622d7368656574732d64656661756c7400046e6f6e6542000000046e6f6e6545000a6465766963652d75726900126c70643a2f2f3137322e31362e312e37362f42000d6d61726b65722d636f6c6f727300072330303030303042000000072330303030303021000d6d61726b65722d6c6576656c730004ffffffff2100000004ffffffff42000c6d61726b65722d6e616d65730005546f6e6572420000000b576173746520546f6e657244000c6d61726b65722d74797065730005746f6e6572440000000b77617374652d746f6e6572490019646f63756d656e742d666f726d61742d737570706f7274656400186170706c69636174696f6e2f6f637465742d73747265616d49000000126170706c69636174696f6e2f70632d657073490000000f6170706c69636174696f6e2f70646649000000166170706c69636174696f6e2f706f737473637269707449000000206170706c69636174696f6e2f766e642e6170706c652d706f7374736372697074490000001b6170706c69636174696f6e2f766e642e637570732d62616e6e6572490000001c6170706c69636174696f6e2f766e642e637570732d636f6d6d616e64490000001f6170706c69636174696f6e2f766e642e637570732d706f7374736372697074490000001b6170706c69636174696f6e2f766e642e637570732d72617374657249000000186170706c69636174696f6e2f766e642e637570732d72617749000000146170706c69636174696f6e2f782d637368656c6c49000000156170706c69636174696f6e2f782d63736f7572636549000000126170706c69636174696f6e2f782d7065726c49000000136170706c69636174696f6e2f782d7368656c6c49000000156170706c69636174696f6e2f7868746d6c2b786d6c490000000e696d6167652f66756a692d7261774900000009696d6167652f676966490000000d696d6167652f696d616765696f4900000009696d6167652f6a7032490000000a696d6167652f6a7065674900000011696d6167652f6d696e6f6c74612d726177490000000d696d6167652f6f70656e657872490000000a696d6167652f706963744900000009696d6167652f706e674900000010696d6167652f7077672d7261737465724900000009696d6167652f726164490000000a696d6167652f746966664900000009696d6167652f757266490000000d696d6167652f782d616c696173490000000e696d6167652f782d6269746d6170490000000b696d6167652f782d626d70490000000b696d6167652f782d69636f490000000c696d6167652f782d69636f6e490000000f696d6167652f782d70686f746f63644900000017696d6167652f782d706f727461626c652d616e796d61704900000017696d6167652f782d706f727461626c652d6269746d61704900000018696d6167652f782d706f727461626c652d677261796d61704900000017696d6167652f782d706f727461626c652d7069786d6170490000000b696d6167652f782d707364490000000c696d6167652f782d71746966490000000f696d6167652f782d7367692d7267624900000012696d6167652f782d73756e2d726173746572490000000b696d6167652f782d746761490000000f696d6167652f782d786269746d6170490000000f696d6167652f782d787069786d61704900000009746578742f68746d6c490000000a746578742f706c61696e4900000008746578742f72746621000e636f706965732d64656661756c74000400000001490017646f63756d656e742d666f726d61742d64656661756c7400186170706c69636174696f6e2f6f637465742d73747265616d4400166a6f622d686f6c642d756e74696c2d64656661756c7400076e6f2d686f6c642100146a6f622d7072696f726974792d64656661756c740004000000322100116e756d6265722d75702d64656661756c7400040000000121001d6e6f746966792d6c656173652d6475726174696f6e2d64656661756c740004000151804400156e6f746966792d6576656e74732d64656661756c74000d6a6f622d636f6d706c6574656413001d6f7269656e746174696f6e2d7265717565737465642d64656661756c7400002300157072696e742d7175616c6974792d64656661756c7400040000000422000f636f6c6f722d737570706f7274656400010121001070616765732d7065722d6d696e75746500040000000821001670616765732d7065722d6d696e7574652d636f6c6f720004000000082300177072696e742d7175616c6974792d737570706f727465640004000000044100167072696e7465722d6d616b652d616e642d6d6f64656c001a47656e6572696320506f7374536372697074205072696e74657244000d6d656469612d64656661756c7400126e615f6c65747465725f382e35783131696e3400116d656469612d636f6c2d64656661756c7400004a0000000a6d656469612d73697a6534000000004a0000000b782d64696d656e73696f6e2100000004000054564a0000000b792d64696d656e73696f6e210000000400006d2437000000004a000000136d656469612d626f74746f6d2d6d617267696e2100000004000001a74a000000116d656469612d6c6566742d6d617267696e2100000004000001a74a000000126d656469612d72696768742d6d617267696e2100000004000001a74a000000106d656469612d746f702d6d617267696e2100000004000001a74a0000000c6d656469612d736f7572636544000000046175746f370000000044000f6d656469612d737570706f7274656400126e615f6c65747465725f382e35783131696e44000000116e615f6c6567616c5f382e35783134696e44000000186e615f6578656375746976655f372e32357831302e35696e44000000116e615f6c65646765725f3131783137696e440000001069736f5f61335f323937783432306d6d440000001069736f5f61345f323130783239376d6d440000001069736f5f61355f313438783231306d6d44000000106a69735f62355f313832783235376d6d440000001c6f6d5f656e762d69736f62355f3137362e3034783235302e31326d6d44000000186e615f6e756d6265722d31305f342e31323578392e35696e440000001069736f5f63355f313632783232396d6d440000001069736f5f646c5f313130783232306d6d44000000166e615f6d6f6e617263685f332e38373578372e35696e3400146d656469612d73697a652d737570706f7274656400004a0000000b782d64696d656e73696f6e2100000004000054564a0000000b792d64696d656e73696f6e210000000400006d24370000000034000000004a0000000b782d64696d656e73696f6e2100000004000054564a0000000b792d64696d656e73696f6e210000000400008ae8370000000034000000004a0000000b782d64696d656e73696f6e2100000004000047ef4a0000000b792d64696d656e73696f6e21000000040000682e370000000034000000004a0000000b782d64696d656e73696f6e210000000400006d244a0000000b792d64696d656e73696f6e21000000040000a8ac370000000034000000004a0000000b782d64696d656e73696f6e2100000004000074044a0000000b792d64696d656e73696f6e21000000040000a410370000000034000000004a0000000b782d64696d656e73696f6e2100000004000052084a0000000b792d64696d656e73696f6e210000000400007404370000000034000000004a0000000b782d64696d656e73696f6e2100000004000039d04a0000000b792d64696d656e73696f6e210000000400005208370000000034000000004a0000000b782d64696d656e73696f6e2100000004000047184a0000000b792d64696d656e73696f6e210000000400006464370000000034000000004a0000000b782d64696d656e73696f6e2100000004000044c04a0000000b792d64696d656e73696f6e2100000004000061a8370000000034000000004a0000000b782d64696d656e73696f6e2100000004000028ed4a0000000b792d64696d656e73696f6e210000000400005e42370000000034000000004a0000000b782d64696d656e73696f6e210000000400003f484a0000000b792d64696d656e73696f6e210000000400005974370000000034000000004a0000000b782d64696d656e73696f6e210000000400002af84a0000000b792d64696d656e73696f6e2100000004000055f0370000000034000000004a0000000b782d64696d656e73696f6e2100000004000026724a0000000b792d64696d656e73696f6e210000000400004a6a37000000004400166d656469612d736f757263652d737570706f7274656400046175746f4400000003746f7044000000066d616e75616c21001d6d656469612d626f74746f6d2d6d617267696e2d737570706f727465640004000001a721001b6d656469612d6c6566742d6d617267696e2d737570706f727465640004000001a721001c6d656469612d72696768742d6d617267696e2d737570706f727465640004000001a721001a6d656469612d746f702d6d617267696e2d737570706f727465640004000001a74400146f75747075742d62696e2d737570706f727465640009666163652d646f776e4400126f75747075742d62696e2d64656661756c740009666163652d646f776e44001a7072696e742d636f6c6f722d6d6f64652d737570706f72746564000a6d6f6e6f6368726f6d654400000005636f6c6f724400187072696e742d636f6c6f722d6d6f64652d64656661756c740005636f6c6f7232001a7072696e7465722d7265736f6c7574696f6e2d64656661756c7400090000012c0000012c0332001c7072696e7465722d7265736f6c7574696f6e2d737570706f7274656400090000012c0000012c0344000f73696465732d737570706f7274656400096f6e652d736964656444000d73696465732d64656661756c7400096f6e652d73696465644400107072696e7465722d636f6d6d616e6473000d4175746f436f6e6669677572654400000005436c65616e44000000115072696e7453656c66546573745061676542000c706f72742d6d6f6e69746f7200046e6f6e65420016706f72742d6d6f6e69746f722d737570706f7274656400046e6f6e6523001466696e697368696e67732d737570706f7274656400040000000323001266696e697368696e67732d64656661756c74000400000003470012636861727365742d636f6e6669677572656400057574662d38470011636861727365742d737570706f72746564000875732d617363696947000000057574662d38440015636f6d7072657373696f6e2d737570706f7274656400046e6f6e654400000004677a6970330010636f706965732d737570706f727465640008000000010000270f41000c637570732d76657273696f6e0005312e372e3248002467656e6572617465642d6e61747572616c2d6c616e67756167652d737570706f727465640005656e2d75734400166970702d76657273696f6e732d737570706f727465640003312e304400000003312e314400000003322e304400000003322e312100116970706765742d6576656e742d6c69666500040000000f4400216a6f622d6372656174696f6e2d617474726962757465732d737570706f727465640006636f70696573440000000a66696e697368696e677344000000166970702d6174747269627574652d666964656c697479440000000e6a6f622d686f6c642d756e74696c44000000086a6f622d6e616d65440000000c6a6f622d7072696f72697479440000000a6a6f622d73686565747344000000056d6564696144000000096d656469612d636f6c440000001a6d756c7469706c652d646f63756d656e742d68616e646c696e6744000000096e756d6265722d7570440000000a6f75747075742d62696e44000000156f7269656e746174696f6e2d726571756573746564440000000b706167652d72616e67657344000000107072696e742d636f6c6f722d6d6f6465440000000d7072696e742d7175616c69747944000000127072696e7465722d7265736f6c7574696f6e440000000573696465734400186a6f622d686f6c642d756e74696c2d737570706f7274656400076e6f2d686f6c64440000000a696e646566696e69746544000000086461792d74696d6544000000076576656e696e6744000000056e69676874440000000c7365636f6e642d7368696674440000000b74686972642d736869667444000000077765656b656e642200116a6f622d6964732d737570706f727465640001013300166a6f622d6b2d6f63746574732d737570706f727465640008000000002bae1a5c2100166a6f622d7072696f726974792d737570706f727465640004000000644400216a6f622d7365747461626c652d617474726962757465732d737570706f727465640006636f70696573440000000a66696e697368696e6773440000000e6a6f622d686f6c642d756e74696c44000000086a6f622d6e616d65440000000c6a6f622d7072696f7269747944000000056d6564696144000000096d656469612d636f6c440000001a6d756c7469706c652d646f63756d656e742d68616e646c696e6744000000096e756d6265722d7570440000000a6f75747075742d62696e44000000156f7269656e746174696f6e2d726571756573746564440000000b706167652d72616e67657344000000107072696e742d636f6c6f722d6d6f6465440000000d7072696e742d7175616c69747944000000127072696e7465722d7265736f6c7574696f6e440000000573696465734200146a6f622d7368656574732d737570706f7274656400046e6f6e65420000000a636c6173736966696564420000000c636f6e666964656e7469616c420000000673656372657442000000087374616e646172644200000009746f70736563726574420000000c756e636c61737369666965643300176a7065672d6b2d6f63746574732d737570706f727465640008000000002bae1a5c33001a6a7065672d782d64696d656e73696f6e2d737570706f727465640008000000000000ffff33001a6a7065672d792d64696d656e73696f6e2d737570706f727465640008000000010000ffff4400136d656469612d636f6c2d737570706f7274656400136d656469612d626f74746f6d2d6d617267696e44000000116d656469612d6c6566742d6d617267696e44000000126d656469612d72696768742d6d617267696e440000000a6d656469612d73697a65440000000c6d656469612d736f7572636544000000106d656469612d746f702d6d617267696e440000000a6d656469612d747970654400246d756c7469706c652d646f63756d656e742d68616e646c696e672d737570706f72746564002473657061726174652d646f63756d656e74732d756e636f6c6c617465642d636f70696573440000002273657061726174652d646f63756d656e74732d636f6c6c617465642d636f706965732200206d756c7469706c652d646f63756d656e742d6a6f62732d737570706f7274656400010121001b6d756c7469706c652d6f7065726174696f6e2d74696d652d6f757400040000012c48001b6e61747572616c2d6c616e67756167652d636f6e666967757265640005656e2d757344001b6e6f746966792d617474726962757465732d737570706f7274656400197072696e7465722d73746174652d6368616e67652d74696d65440000001c6e6f746966792d6c656173652d65787069726174696f6e2d74696d65440000001b6e6f746966792d737562736372696265722d757365722d6e616d6533001f6e6f746966792d6c656173652d6475726174696f6e2d737570706f727465640008000000007fffffff21001b6e6f746966792d6d61782d6576656e74732d737570706f727465640004000000644400176e6f746966792d6576656e74732d737570706f72746564000d6a6f622d636f6d706c6574656444000000126a6f622d636f6e6669672d6368616e676564440000000b6a6f622d63726561746564440000000c6a6f622d70726f677265737344000000116a6f622d73746174652d6368616e676564440000000b6a6f622d73746f70706564440000000d7072696e7465722d6164646564440000000f7072696e7465722d6368616e67656444000000167072696e7465722d636f6e6669672d6368616e676564440000000f7072696e7465722d64656c65746564440000001a7072696e7465722d66696e697368696e67732d6368616e67656444000000157072696e7465722d6d656469612d6368616e67656444000000107072696e7465722d6d6f64696669656444000000117072696e7465722d72657374617274656444000000107072696e7465722d73687574646f776e44000000157072696e7465722d73746174652d6368616e676564440000000f7072696e7465722d73746f70706564440000000c7365727665722d617564697444000000107365727665722d726573746172746564440000000e7365727665722d73746172746564440000000e7365727665722d73746f7070656444001c6e6f746966792d70756c6c2d6d6574686f642d737570706f7274656400066970706765744400186e6f746966792d736368656d65732d737570706f7274656400066d61696c746f44000000037273732100136e756d6265722d75702d737570706f727465640004000000012100000004000000022100000004000000042100000004000000062100000004000000092100000004000000102300146f7065726174696f6e732d737570706f7274656400040000000223000000040000000423000000040000000523000000040000000623000000040000000823000000040000000923000000040000000a23000000040000000b23000000040000000c23000000040000000d23000000040000000e23000000040000001023000000040000001123000000040000001223000000040000001323000000040000001423000000040000001523000000040000001623000000040000001723000000040000001823000000040000001923000000040000001a23000000040000001b23000000040000001c23000000040000002223000000040000002323000000040000002523000000040000002623000000040000003823000000040000003923000000040000003b23000000040000400123000000040000400223000000040000400323000000040000400423000000040000400523000000040000400623000000040000400723000000040000400823000000040000400923000000040000400a23000000040000400b23000000040000400c23000000040000400d23000000040000400e23000000040000400f23000000040000402723000000040000000e23001f6f7269656e746174696f6e2d7265717565737465642d737570706f72746564000400000003230000000400000004230000000400000005230000000400000006220015706167652d72616e6765732d737570706f727465640001013300167064662d6b2d6f63746574732d737570706f727465640008000000002bae1a5c4400167064662d76657273696f6e732d737570706f72746564000961646f62652d312e32440000000961646f62652d312e33440000000961646f62652d312e34440000000961646f62652d312e35440000000961646f62652d312e36440000000961646f62652d312e37440000001069736f2d31393030352d315f32303035440000001069736f2d33323030302d315f32303038440000000a7077672d353130322e3344001670646c2d6f766572726964652d737570706f727465640009617474656d7074656442001b7072696e7465722d6f702d706f6c6963792d737570706f72746564000d61757468656e74696361746564420000000764656661756c7442000000086b65726265726f734400257072696e7465722d7365747461626c652d617474726962757465732d737570706f72746564000c7072696e7465722d696e666f44000000107072696e7465722d6c6f636174696f6e22001a7365727665722d69732d73686172696e672d7072696e7465727300010044001477686963682d6a6f62732d737570706f727465640009636f6d706c65746564440000000d6e6f742d636f6d706c65746564440000000761626f727465644400000003616c6c440000000863616e63656c6564440000000770656e64696e67440000000c70656e64696e672d68656c64440000000a70726f63657373696e67440000001270726f63657373696e672d73746f7070656403 

/Users/jeremy/Sites/alice/ard-checkin-client/build/ard-checkin-client/osx/ard-checkin-client.app/Co…:11
219 "not handled" /Users/jeremy/Sites/alice/ard-checkin-client/build/ard-checkin-client/osx/ard-checkin-client.app/Co…:133

Object {version: "2.0", statusCode: "successful-ok", id: 24749374, operation-attributes-tag: Object, printer-attributes-tag: Object} 

The odd thing is the first time I tried this, my app hit the debugger and then crashed, but the second time it skipped the debugger and was fine...

from ipp.

williamkapke avatar williamkapke commented on August 11, 2024

Very cool. Since the spec is missing any details on how to process the novalue, I didn't write a case for it and that's why it falls to the default (debugger & log). Based on your output, I'm making a leap of faith that all of them should have a 0 length value and it will just assign undefined to the property.

If anyone has a printer that has a different output, hopefully they will add to this thread.

I also changed the log message so it is more clear why it exists like that.

Thanks for helping out!

from ipp.

thenewguy avatar thenewguy commented on August 11, 2024

I am hitting this too and it stops execution and opens the debugger in chrome. Debugger shows this at the top of the readValue function: tag = 19, name = "orientation-requested-default"

Printer is the cups-pdf virtual pdf printer.

This code causes it:

            var ipp = require('ipp');
            var data = ipp.serialize({
                "operation":"Get-Printer-Attributes",
                "operation-attributes-tag": {
                    "attributes-charset": "utf-8",
                    "attributes-natural-language": "en",
                    "printer-uri": printer_uri
                }
            });
            console.log("IPP Get-Printer-Attributes");
            ipp.request(printer_uri, data, function(err, res){
                var msg = (err) ? err : JSON.stringify(res, null, 2);
                console.log(msg);
            })

Here is the log output with the result:

{
  "version": "2.0",
  "statusCode": "successful-ok",
  "id": 58943224,
  "operation-attributes-tag": {
    "attributes-charset": "utf-8",
    "attributes-natural-language": "en"
  },
  "printer-attributes-tag": {
    "marker-change-time": 0,
    "printer-current-time": "2015-10-01T12:19:19.000Z",
    "printer-dns-sd-name": "PDF @ cups",
    "printer-error-policy": "retry-job",
    "printer-error-policy-supported": [
      "abort-job",
      "retry-current-job",
      "retry-job",
      "stop-printer"
    ],
    "printer-icons": "http://localhost:631/icons/PDF.png",
    "printer-is-accepting-jobs": true,
    "printer-is-shared": true,
    "printer-is-colormanaged": true,
    "printer-more-info": "http://localhost:631/printers/PDF",
    "printer-op-policy": "default",
    "printer-state": "idle",
    "printer-state-change-time": 1440984109,
    "printer-state-message": "",
    "printer-state-reasons": "none",
    "printer-type": 8581196,
    "printer-up-time": 1440994759,
    "printer-uri-supported": "ipp://localhost:631/printers/PDF",
    "queued-job-count": 0,
    "uri-authentication-supported": "requesting-user-name",
    "uri-security-supported": "none",
    "printer-name": "PDF",
    "printer-location": "",
    "printer-info": "PDF",
    "printer-uuid": "urn:uuid:f89818ba-1109-3cf2-740c-cf4e72b871c5",
    "ppd-timestamp": "*",
    "job-quota-period": 0,
    "job-k-limit": 0,
    "job-page-limit": 0,
    "job-sheets-default": [
      "none",
      "none"
    ],
    "device-uri": "cups-pdf:/",
    "document-format-supported": [
      "application/octet-stream",
      "application/pdf",
      "application/postscript",
      "application/vnd.adobe-reader-postscript",
      "application/vnd.cups-command",
      "application/vnd.cups-pdf",
      "application/vnd.cups-pdf-banner",
      "application/vnd.cups-postscript",
      "application/vnd.cups-raw",
      "application/x-cshell",
      "application/x-csource",
      "application/x-perl",
      "application/x-shell",
      "image/gif",
      "image/jpeg",
      "image/png",
      "image/tiff",
      "image/urf",
      "image/x-bitmap",
      "image/x-photocd",
      "image/x-portable-anymap",
      "image/x-portable-bitmap",
      "image/x-portable-graymap",
      "image/x-portable-pixmap",
      "image/x-sgi-rgb",
      "image/x-sun-raster",
      "image/x-xbitmap",
      "image/x-xpixmap",
      "image/x-xwindowdump",
      "text/css",
      "text/html",
      "text/plain"
    ],
    "copies-default": 1,
    "document-format-default": "application/octet-stream",
    "job-hold-until-default": "no-hold",
    "job-priority-default": 50,
    "number-up-default": 1,
    "notify-lease-duration-default": 86400,
    "notify-events-default": "job-completed",
    "print-quality-default": "normal",
    "color-supported": true,
    "pages-per-minute": 8,
    "pages-per-minute-color": 8,
    "print-quality-supported": "normal",
    "printer-make-and-model": "Generic CUPS-PDF Printer",
    "media-default": "iso_a4_210x297mm",
    "media-col-default": {
      "media-size": {
        "x-dimension": 21000,
        "y-dimension": 29700
      },
      "media-bottom-margin": 0,
      "media-left-margin": 0,
      "media-right-margin": 0,
      "media-top-margin": 0
    },
    "media-supported": [
      "na_edp_11x14in",
      "na_ledger_11x17in",
      "na_b-plus_12x19.17in",
      "custom_16x20in_16x20in",
      "custom_16x24in_16x24in",
      "om_2-a_1188.86x1682.04mm",
      "om_4-a_1682.04x2380.9mm",
      "na_govt-letter_8x10in",
      "custom_8x12in_8x12in",
      "iso_a0_841x1189mm",
      "iso_a1_594x841mm",
      "iso_a2_420x594mm",
      "iso_a3_297x420mm",
      "iso_a4_210x297mm",
      "iso_a5_148x210mm",
      "na_letter_8.5x11in",
      "na_c_17x22in",
      "na_d_22x34in",
      "na_e_34x44in",
      "oe_arch-a_9x12in",
      "oe_arch-b_12x18in",
      "oe_arch-c_18x24in",
      "oe_arch-d_24x36in",
      "oe_arch-e_36x48in",
      "om_c0_916.87x1296.81mm",
      "om_c1_647.7x916.87mm",
      "om_c2_457.91x647.7mm",
      "om_c3_323.85x457.91mm",
      "om_c4_228.95x323.85mm",
      "iso_c5_162x229mm",
      "na_number-10_4.125x9.5in",
      "iso_dl_110x220mm",
      "na_monarch_3.875x7.5in",
      "na_executive_7.25x10.5in",
      "iso_b0_1000x1414mm",
      "iso_b1_707x1000mm",
      "iso_b2_500x707mm",
      "iso_b3_353x500mm",
      "iso_b4_250x353mm",
      "iso_b5_176x250mm",
      "om_jisb0_1029.76x1455.91mm",
      "om_jisb1_727.78x1029.76mm",
      "om_jisb2_514.7x727.78mm",
      "om_jisb3_363.01x514.7mm",
      "om_jisb4_256.47x363.01mm",
      "om_jisb5_182.74x256.47mm",
      "oe_ledger_17x11in",
      "na_legal_8.5x14in",
      "om_ra0_859.72x1219.91mm",
      "om_ra1_609.95x859.72mm",
      "om_ra2_429.68x609.95mm",
      "om_ra3_304.8x429.68mm",
      "om_ra4_214.84x304.8mm",
      "om_sra0_899.94x1279.88mm",
      "om_sra1_639.94x899.94mm",
      "om_sra2_449.79x639.94mm",
      "om_sra3_319.97x449.79mm",
      "om_sra4_224.72x319.97mm",
      "na_super-a_8.94x14in",
      "custom_min_0.5x0.5in",
      "custom_max_35277.78x35277.78mm"
    ],
    "media-size-supported": [
      {
        "x-dimension": 27940,
        "y-dimension": 35560
      },
      {
        "x-dimension": 27940,
        "y-dimension": 43180
      },
      {
        "x-dimension": 33020,
        "y-dimension": 48260
      },
      {
        "x-dimension": 40640,
        "y-dimension": 50800
      },
      {
        "x-dimension": 40640,
        "y-dimension": 60960
      },
      {
        "x-dimension": 118900,
        "y-dimension": 168200
      },
      {
        "x-dimension": 168204,
        "y-dimension": 238090
      },
      {
        "x-dimension": 20320,
        "y-dimension": 25400
      },
      {
        "x-dimension": 20320,
        "y-dimension": 30480
      },
      {
        "x-dimension": 84100,
        "y-dimension": 118900
      },
      {
        "x-dimension": 59400,
        "y-dimension": 84100
      },
      {
        "x-dimension": 42000,
        "y-dimension": 59400
      },
      {
        "x-dimension": 29700,
        "y-dimension": 42000
      },
      {
        "x-dimension": 21000,
        "y-dimension": 29700
      },
      {
        "x-dimension": 14800,
        "y-dimension": 21000
      },
      {
        "x-dimension": 21590,
        "y-dimension": 27940
      },
      {
        "x-dimension": 43180,
        "y-dimension": 55880
      },
      {
        "x-dimension": 55880,
        "y-dimension": 86360
      },
      {
        "x-dimension": 86360,
        "y-dimension": 111760
      },
      {
        "x-dimension": 22860,
        "y-dimension": 30480
      },
      {
        "x-dimension": 30480,
        "y-dimension": 45720
      },
      {
        "x-dimension": 45720,
        "y-dimension": 60960
      },
      {
        "x-dimension": 60960,
        "y-dimension": 91440
      },
      {
        "x-dimension": 91440,
        "y-dimension": 121920
      },
      {
        "x-dimension": 91700,
        "y-dimension": 129700
      },
      {
        "x-dimension": 64800,
        "y-dimension": 91700
      },
      {
        "x-dimension": 45800,
        "y-dimension": 64800
      },
      {
        "x-dimension": 32400,
        "y-dimension": 45800
      },
      {
        "x-dimension": 22900,
        "y-dimension": 32400
      },
      {
        "x-dimension": 16200,
        "y-dimension": 22900
      },
      {
        "x-dimension": 10477,
        "y-dimension": 24130
      },
      {
        "x-dimension": 11000,
        "y-dimension": 22000
      },
      {
        "x-dimension": 9842,
        "y-dimension": 19050
      },
      {
        "x-dimension": 18415,
        "y-dimension": 26670
      },
      {
        "x-dimension": 100000,
        "y-dimension": 141400
      },
      {
        "x-dimension": 70700,
        "y-dimension": 100000
      },
      {
        "x-dimension": 50000,
        "y-dimension": 70700
      },
      {
        "x-dimension": 35300,
        "y-dimension": 50000
      },
      {
        "x-dimension": 25000,
        "y-dimension": 35300
      },
      {
        "x-dimension": 17600,
        "y-dimension": 25000
      },
      {
        "x-dimension": 103000,
        "y-dimension": 145600
      },
      {
        "x-dimension": 72800,
        "y-dimension": 103000
      },
      {
        "x-dimension": 51500,
        "y-dimension": 72800
      },
      {
        "x-dimension": 36400,
        "y-dimension": 51500
      },
      {
        "x-dimension": 25700,
        "y-dimension": 36400
      },
      {
        "x-dimension": 18200,
        "y-dimension": 25700
      },
      {
        "x-dimension": 43180,
        "y-dimension": 27940
      },
      {
        "x-dimension": 21590,
        "y-dimension": 35560
      },
      {
        "x-dimension": 86000,
        "y-dimension": 122000
      },
      {
        "x-dimension": 61000,
        "y-dimension": 86000
      },
      {
        "x-dimension": 43000,
        "y-dimension": 61000
      },
      {
        "x-dimension": 30500,
        "y-dimension": 43000
      },
      {
        "x-dimension": 21590,
        "y-dimension": 30480
      },
      {
        "x-dimension": 90000,
        "y-dimension": 128000
      },
      {
        "x-dimension": 64000,
        "y-dimension": 90000
      },
      {
        "x-dimension": 45000,
        "y-dimension": 64000
      },
      {
        "x-dimension": 32000,
        "y-dimension": 45000
      },
      {
        "x-dimension": 22500,
        "y-dimension": 32000
      },
      {
        "x-dimension": 22707,
        "y-dimension": 35560
      },
      {
        "x-dimension": [
          1270,
          3527778
        ],
        "y-dimension": [
          1270,
          3527778
        ]
      }
    ],
    "media-bottom-margin-supported": 0,
    "media-left-margin-supported": 0,
    "media-right-margin-supported": 0,
    "media-top-margin-supported": 0,
    "output-bin-supported": "face-down",
    "output-bin-default": "face-down",
    "print-color-mode-supported": [
      "monochrome",
      "color"
    ],
    "print-color-mode-default": "color",
    "printer-resolution-supported": [
      [
        150,
        150,
        "dpi"
      ],
      [
        300,
        300,
        "dpi"
      ],
      [
        600,
        600,
        "dpi"
      ],
      [
        1200,
        1200,
        "dpi"
      ],
      [
        2400,
        2400,
        "dpi"
      ]
    ],
    "printer-resolution-default": [
      300,
      300,
      "dpi"
    ],
    "sides-supported": "one-sided",
    "sides-default": "one-sided",
    "printer-commands": [
      "AutoConfigure",
      "Clean",
      "PrintSelfTestPage"
    ],
    "port-monitor": "none",
    "port-monitor-supported": "none",
    "finishings-supported": "none",
    "finishings-default": "none",
    "charset-configured": "utf-8",
    "charset-supported": [
      "us-ascii",
      "utf-8"
    ],
    "compression-supported": [
      "none",
      "gzip"
    ],
    "copies-supported": [
      1,
      9999
    ],
    "cups-version": "1.7.2",
    "generated-natural-language-supported": "en-us",
    "ipp-versions-supported": [
      "1.0",
      "1.1",
      "2.0",
      "2.1"
    ],
    "ippget-event-life": 15,
    "job-creation-attributes-supported": [
      "copies",
      "finishings",
      "ipp-attribute-fidelity",
      "job-hold-until",
      "job-name",
      "job-priority",
      "job-sheets",
      "media",
      "media-col",
      "multiple-document-handling",
      "number-up",
      "output-bin",
      "orientation-requested",
      "page-ranges",
      "print-color-mode",
      "print-quality",
      "printer-resolution",
      "sides"
    ],
    "job-hold-until-supported": [
      "no-hold",
      "indefinite",
      "day-time",
      "evening",
      "night",
      "second-shift",
      "third-shift",
      "weekend"
    ],
    "job-ids-supported": true,
    "job-k-octets-supported": [
      0,
      121669724
    ],
    "job-priority-supported": 100,
    "job-settable-attributes-supported": [
      "copies",
      "finishings",
      "job-hold-until",
      "job-name",
      "job-priority",
      "media",
      "media-col",
      "multiple-document-handling",
      "number-up",
      "output-bin",
      "orientation-requested",
      "page-ranges",
      "print-color-mode",
      "print-quality",
      "printer-resolution",
      "sides"
    ],
    "job-sheets-supported": [
      "none",
      "classified",
      "confidential",
      "form",
      "secret",
      "standard",
      "topsecret",
      "unclassified"
    ],
    "jpeg-k-octets-supported": [
      0,
      121669724
    ],
    "jpeg-x-dimension-supported": [
      0,
      65535
    ],
    "jpeg-y-dimension-supported": [
      1,
      65535
    ],
    "media-col-supported": [
      "media-bottom-margin",
      "media-left-margin",
      "media-right-margin",
      "media-size",
      "media-source",
      "media-top-margin",
      "media-type"
    ],
    "multiple-document-handling-supported": [
      "separate-documents-uncollated-copies",
      "separate-documents-collated-copies"
    ],
    "multiple-document-jobs-supported": true,
    "multiple-operation-time-out": 300,
    "natural-language-configured": "en-us",
    "notify-attributes-supported": [
      "printer-state-change-time",
      "notify-lease-expiration-time",
      "notify-subscriber-user-name"
    ],
    "notify-lease-duration-supported": [
      0,
      2147483647
    ],
    "notify-max-events-supported": 100,
    "notify-events-supported": [
      "job-completed",
      "job-config-changed",
      "job-created",
      "job-progress",
      "job-state-changed",
      "job-stopped",
      "printer-added",
      "printer-changed",
      "printer-config-changed",
      "printer-deleted",
      "printer-finishings-changed",
      "printer-media-changed",
      "printer-modified",
      "printer-restarted",
      "printer-shutdown",
      "printer-state-changed",
      "printer-stopped",
      "server-audit",
      "server-restarted",
      "server-started",
      "server-stopped"
    ],
    "notify-pull-method-supported": "ippget",
    "notify-schemes-supported": [
      "dbus",
      "mailto",
      "rss"
    ],
    "number-up-supported": [
      1,
      2,
      4,
      6,
      9,
      16
    ],
    "operations-supported": [
      "Print-Job",
      "Validate-Job",
      "Create-Job",
      "Send-Document",
      "Cancel-Job",
      "Get-Job-Attributes",
      "Get-Jobs",
      "Get-Printer-Attributes",
      "Hold-Job",
      "Release-Job",
      "Restart-Job",
      "Pause-Printer",
      "Resume-Printer",
      "Purge-Jobs",
      "Set-Printer-Attributes",
      "Set-Job-Attributes",
      "Get-Printer-Supported-Values",
      "Create-Printer-Subscriptions",
      "Create-Job-Subscription",
      "Get-Subscription-Attributes",
      "Get-Subscriptions",
      "Renew-Subscription",
      "Cancel-Subscription",
      "Get-Notifications",
      "Enable-Printer",
      "Disable-Printer",
      "Hold-New-Jobs",
      "Release-Held-New-Jobs",
      "Cancel-Jobs",
      "Cancel-My-Jobs",
      "Close-Job",
      16385,
      16386,
      16387,
      16388,
      16389,
      16390,
      16391,
      16392,
      16393,
      16394,
      16395,
      16396,
      16397,
      16398,
      16399,
      16423,
      "Restart-Job"
    ],
    "orientation-requested-supported": [
      "portrait",
      "landscape",
      "reverse-landscape",
      "reverse-portrait"
    ],
    "page-ranges-supported": true,
    "pdf-k-octets-supported": [
      0,
      121669724
    ],
    "pdf-versions-supported": [
      "adobe-1.2",
      "adobe-1.3",
      "adobe-1.4",
      "adobe-1.5",
      "adobe-1.6",
      "adobe-1.7",
      "iso-19005-1_2005",
      "iso-32000-1_2008",
      "pwg-5102.3"
    ],
    "pdl-override-supported": "attempted",
    "printer-op-policy-supported": [
      "authenticated",
      "default"
    ],
    "printer-settable-attributes-supported": [
      "printer-info",
      "printer-location"
    ],
    "server-is-sharing-printers": true,
    "which-jobs-supported": [
      "completed",
      "not-completed",
      "aborted",
      "all",
      "canceled",
      "pending",
      "pending-held",
      "processing",
      "processing-stopped"
    ]
  }
}

from ipp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.