note 91553 added to function.ps-include-file
| From: | php at catchall dot toao dot net | Date: | Tue, 16 Jun 2009 19:46:52 +0000 |
| Subject: | note 91553 added to function.ps-include-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156942@lists.php.net to get a copy of this message | ||
I wanted to print to a specific tray of my printer, a Dell 3110cn. Some printers allow you to
specify in their config what tray will be used as a default tray, but my printer doesn't.
Googling told me that printing to a specific tray is not a function of PostScript but rather a
function of my printer itself. So, I had to find the function for my specific printer. I located a
PPD file for my printer. Purely by luck (I searched through the file for the word 'tray')
I found the following:
*InputSlot 2ndTray-H/Tray 2 (500 Sheets): "
3 dict begin
/MediaPosition 1 def
/DeferredMediaSelection true def
/TraySwitch false def
currentdict end setpagedevice
" *End
I saved this as a file named Dell.ps, without the first and last lines, and with a blank line at the
end. Then I used the following command in my program:
<?php ps_include_file($ps, 'Dell.ps'); ?>
It worked!
----
Server IP: 66.207.199.35
Probable Submitter: 76.10.187.135
----
Manual Page -- http://www.php.net/manual/en/function.ps-include-file.php
Edit -- https://master.php.net/note/edit/91553
Del: integrated -- https://master.php.net/note/delete/91553/integrated
Del: useless -- https://master.php.net/note/delete/91553/useless
Del: bad code -- https://master.php.net/note/delete/91553/bad+code
Del: spam -- https://master.php.net/note/delete/91553/spam
Del: non-english -- https://master.php.net/note/delete/91553/non-english
Del: in docs -- https://master.php.net/note/delete/91553/in+docs
Del: other reasons-- https://master.php.net/note/delete/91553
Reject -- https://master.php.net/note/reject/91553
Search -- https://master.php.net/manage/user-notes.php