로컬 프린터에서 pdf 파일을 인쇄하려고합니다. 이 코드는 인쇄하려고했습니다.노드 용 인터넷 인쇄 프로토콜 (IPP)
fs.readFile('documents/AccountStatement.pdf', function(err, data) {
if (err)
throw err;
var printer = ipp.Printer("http://hostname:631/ipp/printer");
var msg = {
"operation-attributes-tag": {
"requesting-user-name": "KUMA1936",
"job-name": "My Test Job",
"document-format": "application/pdf"
},
data: data
};
printer.execute("Print-Job", msg, function(err, res){
console.log(res);
console.log(err);
});
});
위의 코드에서 printer.execute() 메서드와 "Print-Job"매개 변수는 무엇이 있습니까? 그리고 내가 입술, 그 쇼
{버전 인쇄 여미 (631) 무엇을 '1.1', 에 statusCode : '서버 오류 작동-지원하지' ID : 442076, '동작 특성을 태그 ': {'특성 - charset ':'utf-8 ', '특성 - 자연 언어 ':'en-us '}} 오류가 null입니다.