LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-04-2021, 06:25 AM   #1
didiw
LQ Newbie
 
Registered: Oct 2009
Posts: 24

Rep: Reputation: 0
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
 
Old 05-04-2021, 07:25 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 2,238

Rep: Reputation: Disabled
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.

Last edited by shruggy; 05-04-2021 at 07:35 AM.
 
1 members found this post helpful.
Old 05-04-2021, 08:23 AM   #3
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 3,743

Rep: Reputation: 1690Reputation: 1690Reputation: 1690Reputation: 1690Reputation: 1690Reputation: 1690Reputation: 1690Reputation: 1690Reputation: 1690Reputation: 1690Reputation: 1690
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.
 
Old 05-04-2021, 11:04 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,332

Rep: Reputation: 4011Reputation: 4011Reputation: 4011Reputation: 4011Reputation: 4011Reputation: 4011Reputation: 4011Reputation: 4011Reputation: 4011Reputation: 4011Reputation: 4011
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.
 
Old 05-07-2021, 03:44 PM   #5
didiw
LQ Newbie
 
Registered: Oct 2009
Posts: 24

Original Poster
Rep: Reputation: 0
I folloowed the links in this
Quote:
Originally Posted by shruggy View Post
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.
 
Old 05-08-2021, 03:50 AM   #6
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 2,238

Rep: Reputation: Disabled
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.
 
  


Reply

Tags
cups-filters, dvi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can I get dual monitors using DVI-i and DVI-D outputs? Habitual Linux - Hardware 3 01-06-2014 03:57 PM
Dual Monitors VGA + DVI (HDMI) Lenovo T410 in docking st - DVI no output??? Berwhale Linux - Hardware 7 03-18-2013 01:34 AM
Strange things on Randeon X800 (DVI-0 / DVI-1) using AVLinux 5 touchstyle Linux - Hardware 3 01-17-2012 04:14 PM
LXer: Print DVI Files with CUPS for Linux LXer Syndicated Linux News 1 02-10-2007 07:47 AM
DVI-D DVI-I DVI-A Dual Link Single Link WTF? Crito Linux - Hardware 0 06-05-2004 01:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration