annatext.serwis
Temat: pdf to ps to printer?
...where your pdf and ps file will be you need to
# include the path to the files.
if(invoice.ps)
{
unlink("invoice.ps"); #delete previously generated .ps file
}
system "pdf2ps","invoice.pdf","invoice.ps";
#call pdf2ps to convert the pdf to a ps file
system "lpr", "invoice.ps";
# prints the ps file
# you could specify a printer if you wish, else the default printer is used
# cups supports lpr commands
if(invoice.pdf)
{
unlink("invoice.pdf"); #delete pdf file
}
//-----------------------------------------------------------------------------
Incase anyone was interested :roll:
Źródło: mandrivausers.org/index.php?showtopic=359