On 2023-10-06 16:03, kernel wrote:
Hola,
estoy intentando hacer una impresion a fichero y no lo consigo, he definido una impresora con la salida file://tmp/prueba.txt, en modo raw, y tambien he añadido 'FileDevice Yes' en el cupsd.conf y he reiniciado el servicio.
No me hace nada cuando imprimo, no me crea ningun fichero.
Directamente de mis notas, y tiene décadas: +++================================ printer / impresora manipula lpadmin -p tf0 -v file:/tmp/print2file.ps -E -P /usr/share/cups/model/Postscript.ppd.gz lpoptions -d tf0 lpoptions -d tp0 Print to PDF via cups: En /etc/cups/cupsd.conf habilito "FileDevice Yes", y añado una impresora: lpadmin -p tf0 -v file:/tmp/print2file.ps -E -P /usr/share/cups/model/Postscript.ppd.gz print to file via cups Sin probar:
lpadmin -p PDF -E -v pdf:/share/pdf -m Adist4.ppd lpadmin -p Fax -E -v sambafax
#lpadmin -p PDF -v pdf:/directory/of/your/choice/ -E -P /usr/share/cups/model/distiller.ppd directory must have 777 permissions, like /tmp. Or set up sendmail to mail it to you. There is a Howto out there. Just google for it. lpadmin -p cups-pdf -v "cups-pdf:/" -m CUPS-PDF.ppd -E -D "Virtual PDF Printer" -L "Local Printer" Afterwards, I would suggest to change the Out configuration line in /etc/cups/cups-pdf.conf. I changed mine to, for example, Out ${HOME}/Documents/PDFs Which means the created pdfs will be found in the users Documents/PDFs folder (which may need to be created, not sure if it will automatically be created or not). absolutely raw printer: lpadmin -p QUEUE -v DeviceURI -E But if "raw" means in fact "do only some trivial filtering" (e.g. adding a formfeed character at the end of each print job or do some trivial recoding of plain text like NL->CR+NL conversion) then you should set up the queue with a so called "System V style interface script" (see "man lpadmin"). For more and detailed information see http://portal.suse.com/sdb/en/2003/06/jsmeix_print-cups-filters.html ================================--- -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))