Magicfilter 2.X and duplex printing

2005-02-12 Thread O. Hartmann
Hello.
Using magicfilter 2.3.b out of the ports runs me into a problem printing 
duplex on a duplex
capable PS printer.
In magicfilter 1.X it was simple inserting an intermediate conversion 
step with psset for
preparing data stream being print duplex and/or selecting a different 
tray for certain paper
qualities, colours or for transparency.

In magicfilter 2.3 I miss such a facility or don't know how to implement 
such a conversion intermediate step
in M4 (I do not program M4).
A solution would be to save a file/document, convert to PS, using psset 
with the appropriate Duplex/Tray
selectors and the print this out to the standard printing queue. But 
this isn't very convenient when printing
from applications like Mozilla or other toolsets in which I have to give 
a printqueue. I feel more flexible selecting
a specific queue for my own purposes than doinf many conversion steps 
outside an application.

Does anyone solved such a problem?
magicfilter 1.X was a very powerful solution for managin many 
printqueues on a printserver especially the
very nice facilities of using many intermediate conversion steps of 
files beeing print were useful. I miss this
simple way in magicfilter 2.3!

Thnaks for your help,
Oliver
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


magicfilter 2.3.b: double sided printing on PS printer possible?

2005-01-05 Thread O. Hartmann
Dear Sirs.
Since the change from the older magicfilter 1.X to the newer version 2.X 
it's impoosible to me to print double sided on a double sided-capable 
PS-printer.

In magicfilter 1.X I was able to add several piped preprocessings (psset 
---setpagedevice=DOUBLE:true). In magicfilter 2.X this seems to be more 
complicated to do via editing the magicfilter.cf configuration file 
(which I can't).

Does anyone has a hint?
Thanks a lot in advance.
Oliver
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


MagicFilter

2004-02-26 Thread Arthur Merar


Hi Gary,

I saw your post in the groups about MagicFilter.  I was hoping you could help me a 
bit.   I'm about to install MagicFilter so I can print bold and font sizes and such 
from Perl scripts.   I'm really unclear how to use this facility.

I have not yet installed the program, but once I do, how do I invoke it to use it or 
tell it to print bold, or times new roman or font size 24??

Thanks for your time,

Arthur

 



-
Do you Yahoo!?
Get better spam protection with Yahoo! Mail
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


magicfilter in FBSD 5.2 not working correctly

2003-12-14 Thread Hartmann, O.
Dear Sir.

Due to my bad English I will try to explain what kind of malfunktion I discovered
in the newest magicfilter 1.2 stuff. Prior to this malfunktion, I used magicfilter
in the desired way - fully functioning!

Base system is a FreeBSD 5.2-RC box acting as printserver for a couple of HP
network attached printers. Most of them are real PostScript printers with
Duplex facility and some colour printers have more than one paper tray which need
to be selected individually due to some transparencies inside some trays.

Here my specific problem.

I compiled ghostscript-gnu 7.07 from the ports and all the necessary stuff. I
also compiled a2ps-a4, psutils-a4 and magicfilter 1.2 as it is in the most recent
version.

My intention is to have one line for each PostScript printer which sets specific
PS parameters for each print queue, for example select tray 2 for transparencies or
coloured plain papers or select whether the document should be printed duplexed or
simplex (several scientific reports need to be printed simplex, others duplex).

For this reason I wrote a magicfilter-filter file with this entry:


 example --
# lj4600-00-05-162-auto-s-filter

0 %!filter /usr/local/bin/psset -q 
--setpagedevice=LanguageLevel:3;Duplex:false;Tumble:false
0 \004%!filter /usr/local/bin/psset -q 
--setpagedevice=LanguageLevel:3;Duplex:false;Tumble:false

for automatic tray selection, simplex print.

Another filter file shows


 example --
# lj4600-00-05-162-auto-d-filter

0 %!filter /usr/local/bin/psset -q 
--setpagedevice=LanguageLevel:3;Duplex:true;Tumble:false
0 \004%!filter /usr/local/bin/psset -q 
--setpagedevice=LanguageLevel:3;Duplex:true;Tumble:false

the same for duplex. I have three more with the --setpagedevice=MediaPosition:XX otion 
set to select the
tray. This works with original PS-documents great! And I confirm: with PS documents I 
can do everything
I want!

So, now I need to print PDF and plain ASCII and I did this before on FreeBSD 4.8 boxes 
with magicfilter 1.1
by adding a line at the end like this:

0 %PDF  fpipe `/usr/local/bin/pdf2ps  $FILE - 2/dev/null`

for converting PDF to PS files an reinject the output into the magicfilter to be 
printed
regarding to the PS-tags above (simplex, duplex, tray select and so on).

Another in the past working tag for plain ASCII conversion was this line:

-
default   pipe/usr/local/bin/a2ps -q -R --columns=1 -B -j --ppd -k 
--prologue=color -o -

(on a colour printer system).

I got output with borderlines and appropriate to the PS-tags above I could print 
duplex or simplex or
selective trays.


And this does not work anymore!


Every printer I examinded (HP LJ4000, LJ4100DTN, CLJ4500, 2x CLJ4600DTN, LJ III, 
LJ1100) I realized,
that the printed file was piped into the print queue as is, unconversted, unprocessed!

I reduced several magicfilter filter files up to four lines, the two for PostScript, 
one for PDF and
the last 'default' for conversion with a2ps to print stupdi ASCII plain text as PS 
data.


At last I will report, that I first used a working environment (printer setup, queue 
setup, magicfilter
setup, then I upgraded to FreeBSD 5.1 and the new magic filter stuff and since then 
nothing worked
as expected.
Another point seems to be that magicfilter isn't capable to inherit the ENVIRONMENT, 
so /usr/local/bin
is completely unknown if some filters like 'fixps' are needed. magicfilter should 
incorporate this
path, otherwise we need to link each needed program to /usr/bin and that's stupid 
stuff.


It would be nice if someone has some solutions out here.

By the way:

This works fine on stupid non-PS printers:


- HP DJ 1120C A3 format printer 
# dj1120-00-05-273-auto-s-filter

# PostScript
0 %! filter /usr/local/bin/gs -q -dSAFER -dNOPAUSE -r300 -sDEVICE=cdj550 
-sOutputFile=- -
0 \004%! filter /usr/local/bin/gs -q -dSAFER -dNOPAUSE -r300 -sDEVICE=cdj550 
-sOutputFile=- -

# Acrobat PDF
0 %PDF  ffilter /usr/local/bin/gs -q -dSAFER -dNOPAUSE -r300 -sPAPERSIZE=a3 
-sDEVICE=cdj550 -sOutputFile=-
$FILE -c
quit

--

hope this helps. Many thanks for staying up to the end of my report and have patience.

Oliver



--
MfG
O. Hartmann

[EMAIL PROTECTED]
--
Systemadministration des Institutes fuer Physik der Atmosphaere (IPA)
--
Johannes Gutenberg Universitaet Mainz
Becherweg 21
55099 Mainz

Tel: +496131/3924662 (Maschinenraum)
Tel: +496131/3924144 (Buero)
FAX: +496131/3923532
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Magicfilter set up

2003-06-06 Thread Gary Schenk
I'm now trying to get magicfilter working on my HP deskjet 6122. So far 
no luck. Here is my /etc/printcap entry:

lp|local line printer:\
:sh:\
:lp=/dev/lpt0:sd=/var/spool/output/lpd:lf=/var/log/lpd-errs:\
  :if=/usr/local/libexec/magicfilter/dj550c-filter:

The printer works fine with the new hpif script in the handbook, but 
when I plug in the magicfilter filter, nothing happens. 
/usr/local/bin/magicfilter is set executable for all three groups, as 
is the filter itself.

Since everything is seemingly set up correctly, is it just because the 
filter is wrong for the printer?

I'm just hoping to be able to use all the capabilities of  the printer, 
print color, jpgs and such.

I'm running 4.7-RELEASE.

Thanks,
Gary
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]