• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 324
  • Last Modified:

Canon BJC-4200 Printer

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
grbaker
Asked:
grbaker
  • 2
  • 2
1 Solution
 
hchengCommented:
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
 
grbakerAuthor Commented:
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
 
hchengCommented:
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
 
grbakerAuthor Commented:
OK... greeat bjc600 is compiled in.... will give her a shot with your script and printcap... thanks

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now