Open Amaraweera opened 8 years ago
Are you trying to send pdf file to printer? Please elaborate.
I am also facing same issue when trying to print html content
what is the last argument you are passing to this function $gcp->sendPrintToPrinter?
<script>
window.onload = function() {
var gadget = new cloudprint.Gadget();
gadget.setPrintButton(
cloudprint.Gadget.createDefaultPrintButton("print_button_container")); // div id to contain the button
gadget.setPrintDocument("[document mimetype]", "[document title]", "[document content]");
}
</script>
This is my code
I'm having the same issue, the last argument being passed into $gcp->sendPrintToPrinter is "application/html"
I also tried "text/html", but that only printed 0
Error code:403 Message:Could not convert to PDF.