Solved

Canon BJC-4200 Printer

Posted on 1997-04-14
4
315 Views
Last Modified: 2013-12-15
Would like to be able to print "formatted" text using a filter such as Apsfilter.
I am able, currently, to print though the utput is not formatted at all.( No idea how to do this without a "filter")
I tried using ghostscript to print a small ps picture file and ended up with nothing but a text dump of the file.
May also need some assistance with compilation instructions for Alladin GS 4.03 for a printer that is close to mine.
Thanks
0
Comment
Question by:grbaker
  • 2
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
hcheng earned 100 total points
ID: 1627141
You should select bjc600 as the printer device from ghostscript.  To make your printer print postscript, you need to add ghostscript as a filter in your /etc/printcap file.  Here is what it looks like in mine:

# Bubble jet

bj:\
  :lp=/dev/lp1:\
  :sd=/usr/spool/bj:\
  :sh:\
  :mx#0:\
  :if=/usr/local/bin/bj-filter:  

where /usr/local/bin/bj-filter is this simple script:

#!/bin/sh
/usr/local/bin/gs -q -dSAFER -dNOPAUSE -sDEVICE=bjc600 -sOutputFile=- -

For formatted text, you can look into a2ps or similar utilities that will do the job.
0
 

Author Comment

by:grbaker
ID: 1627142
Hi There.

Will it be necessary to recompile the ghostscript src files to include support for the bjc600 ( had already read most of the gs docs and settled on this as the closest ). If so is the driver support automatically compiled in when make is run.. or do you have to set up the devs.mak file and others prior to recompilation?
If support is not automatically compiled in any info as to what files have to be changed... the only thing I got from the various docs was a headache. I'm not a programmer at all.. so most of the docs having to do with the compilation were above my head ( to say the least ).
0
 
LVL 1

Expert Comment

by:hcheng
ID: 1627143
If you have already compiled ghostscript, try typing "gs -help".  It should list all devices that it supports right now.  If you see bjc600 as one of them, then you don't have to recompile.  Otherwise, you will need to recompile.  It's been a while since I have compiled gs, but I think that most of the devices are enabled by default.

Yes, compiling ghostscript can be a pain.  So many little portions of makefiles to edit...
0
 

Author Comment

by:grbaker
ID: 1627144
OK... greeat bjc600 is compiled in.... will give her a shot with your script and printcap... thanks

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Scripting 3 95
cannot connect to openvpn server 9 58
networking details on centos 6.6 4 49
jquery easyautocomplete for mutiple text boxes 9 54
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now