当我发送没有功能的打印机作业时,它的工作和打印:
<?php
$url = "http://www.google.com/cloudprint/submit?printerid=" . $printer_id . &output=json";
$post = array(
"printerid" => $printer_id,
"capabilities" => '',
"contentType" => "text/plain",
"title" => $title,
"content" => $docBytes
);
$post = http_build_query($post);
$ret = $this->processRequest($url, $post, "");
?>
但现在我需要以 A7 格式的字母打印信息。所以我用一些功能编写了这段代码:
<?php
$url = "http://www.google.com/cloudprint/submit?printerid=" . $printer_id . "&output=json";
$post = array(
"printerid" => $printer_id,
"capabilities" => array('psk:MediaSizeWidth' => '74000', 'psk:MediaSizeHeight' => '104700'),
"contentType" => "text/plain",
"title" => $title,
"content" => $docBytes
);
$post = http_build_query($post);
$ret = $this->processRequest($url, $post, "");
?>
而且它不想打印。只是错误。也许有人知道如何正确地做到这一点?