- add a socket printer, using "lpadmin -p tofile -E -v socket://localhost:12000 -m raw"
- nc -l -p9100 >filename.out, listen on port 9100 and expert into file filename.out.
- a server listening on port 12000:
#!/usr/bin/perl
from http://aplawrence.com/MacOSX/macosxcupstofile.html
use IO::Socket::INET;
$myport=12000;
$pserve=IO::Socket::INET->new(LocalPort => $myport,Type=>SOCK_STREAM,Reuse=>1,Listen=>1) or die "can't do that $!\n";
while ($pjob=$pserve->accept()) {
open(J,">>/private/tmp/x") or print "having issues $!\n";
print J "New job...\n";
while (<$pjob>) {
print J "$_";
}
close J;
close $pjob;
} - openoffice printer manager, add pdf converter, then modify command as "/usr/bin/gs -sDEVICE=tiffg3 -r204x196 -dDEVICEWIDTH=1728 -sFONTPATH=/usr/X11R6/lib/X11/fonts/Type1/ -sOutputFile=/home/foolbear/out.tif -dNOPAUSE -dSAFER -dBATCH -sPAPERSIZE=a4 -", available for openoffice only.
- soffice -pt TiffPrinter -omedia=A4 /home/foolbear/foolbear.doc, using -pt instead of -p.
- How CUPS talks to Print Servers, Print Clients and Printers。
^_^
2008年5月16日星期五
Brief tips about openoffice print doc to tiff format
本站文章除注明外,均为本站原创
转载请注明文章转载自: 大笨熊乐园 [ https://blog.foolbear.com/?m=0 ]
文章标题: Brief tips about openoffice print doc to tiff format
文章地址: https://blog.foolbear.com/2008/05/brief-tips-about-openoffice-print-doc.html?m=0
转载请注明文章转载自: 大笨熊乐园 [ https://blog.foolbear.com/?m=0 ]
文章标题: Brief tips about openoffice print doc to tiff format
文章地址: https://blog.foolbear.com/2008/05/brief-tips-about-openoffice-print-doc.html?m=0
订阅:
博文评论
(
Atom
)
没有评论 :
发表评论