Solved

Canon BJC-4200 Printer

Posted on 1997-04-14
4
314 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

747 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

9 Experts available now in Live!

Get 1:1 Help Now