Dennis Freni - 2014-10-18 11:36:06 -
In reply to message 1 from Dennis Freni
I allready found it...
I added a variable $printSettings and used it in the postfields
NEW CODE:
// Printing Settings
$printSettings = '{"version": "1.0","print": {"page_orientation": { "type": 1 }}}';
// Prepare post fields for sending print
$post_fields = array(
'printerid' => $printerid,
'title' => $printjobtitle,
'ticket' => $printSettings,
'contentTransferEncoding' => 'base64',
'content' => base64_encode($contents), // encode file content as base64
'contentType' => $contenttype
);