LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Printing dvi files with cups (https://www.linuxquestions.org/questions/linux-server-73/printing-dvi-files-with-cups-4175694688/)

didiw 05-04-2021 06:25 AM

Printing dvi files with cups
 
Hi,
I like to print dvi files directly using cups e.g.
lpr file.dvi
I seem to remember, but cannot find anything, that there was a way to add an entry to the cups mime types file and to the file, where the mime type is associated with a filter program.
Thanks in advance
didiw

shruggy 05-04-2021 07:25 AM

Hmm. Somehow, I cannot find it in the latest version of the IBM LPIC-1 tutorial, but the archive copy of an older version has it. Or see here in the PDF version of the same tutorial.

wpeckham 05-04-2021 08:23 AM

If you cannot find a dvi filter for cups, evince and xdvik both allow pringing of dvi (and many other) format files form those applications.

michaelk 05-04-2021 11:04 AM

It is mentioned but does not include the wrapper script like the older versions.

Quote:

Input files are converted to an intermediate raster or PostScript format using filters. Job information such as number of copies is added. The data is finally sent through a beckend to the destination printer. There are some filters (such as a2ps or dvips) that you can use to manually filter input. You might do this to obtain special formatting results, or to handle a file format that CUPS does not support natively.
Here was Michael Sweet's comment back in 2003 although it appears he added it as an enhancement in 2016...
https://github.com/apple/cups/issues/171

Depending on your distribution there is also dvipdf to convert the file to pdf then print it via lpr.

didiw 05-07-2021 03:44 PM

I folloowed the links in this
Quote:

Originally Posted by shruggy (Post 6247830)
Hmm. Somehow, I cannot find it in the latest version of the IBM LPIC-1 tutorial, but the archive copy of an older version has it. Or see here in the PDF version of the same tutorial.

article, but I cannot see the files being used, neither in the error_log of cups nor in an strace.
Is there any change in applying those file.

shruggy 05-08-2021 03:50 AM

The article explains how to write your own, custom CUPS filter for an unsupported file type. CUPS doesn't provide a filter for printing DVI out of the box.


All times are GMT -5. The time now is 07:18 PM.