[cups] PDF workflow with old server?

Helge Blischke helgeblischke at web.de
Thu Apr 16 04:07:08 PDT 2015


> Am 16.04.2015 um 12:41 schrieb Johan Bengtsson <elijah at chalmers.se>:
> 
> On Thu, 16 Apr 2015, Helge Blischke wrote:
> 
>>>> pdftops						Perl script (needed at least Perl 5.8.3)
>>>> 			to be put into /usr/lib/cups/filter
>>>> pdftops.conf					configuration file, needed for the xpdf utility from footballs.com
>>>> 			to be put into /etc/cups (the Perl scripts reads it from there)
>>>> 
>>>> The configuration file can be empty if you use the pdftops utility from poppler-utils.
>>> 
>>> OK, I tried now, printing is fast enough. But unfortunately tray selection is
>>> ignored.
>> Looking into the sources of cuts-1.4.x, I see that the „mime.convs“ file as generated
>> by the configure script contains the line
>> application/pdf		application/vnd.cups-postscript	66	pdftops
>> For use with the pdftops filter from me, replace it by
>> application/pdf		application/postscript			66	pdftops
>> to make sure that the PostScript created by this pdftops filter is fed
>> through the stops filter, which honours all of the PDF default settings.
>> (The original 1.4.x pdftops filter calls the stops filter internally).
>> 
>> If you prefer not to modify the mime.cons file, I could easily modify my
>> filter script to mimic the behavior of the original pdftops filter. Let me know.
> 
> OK, it works now after modifying the mime.convs file.:-) This is just a lab
> server I'm working with, I don't know if we need the original behaviour yet...
> 
> This line in the pdftops.conf file, is it something I need to worry about?
No, this specifies directories (as many as you need) where to look for fonts which are
not embedded into the PDF files.
In your case, you may simply ignore it (none of the .pfa fonts you listed matches the
condition that the plain file name (without extension) must match the font name
specified in the PDF file.
(The directory specified in my configuration file reflects a directory for Type1 fonts
systemwide available by NFS).
As long as your PDFs embed all fonts, perhaps short of the „infamous standard 14“ fonts
(which are supposed to be installed in every PS printer), this setting isn’t with thinking of.
(See also „man xpdfrc“).


> #
> # Where to search for fonts not embedded in the PDF (currently, Type1 fonts
> only)
> #
> fontDir /PostScript/pfa
> 
> [root at vmtest002 log]# locate pfa
> /usr/bin/pfb2pfa
> /usr/bin/pfbtopfa
> /usr/bin/wftopfa
> /usr/local/redhat/BUILD/gnutls-1.4.1/gl/m4/sockpfaf.m4
> /usr/local/redhat/BUILD.appro/gnutls-1.4.1/gl/m4/sockpfaf.m4
> /usr/local/share/ghostscript/8.15/lib/pfbtopfa.ps
> /usr/local/share/ghostscript/8.15/lib/wftopfa.ps
> /usr/share/X11/fonts/Type1/UTBI____.pfa
> /usr/share/X11/fonts/Type1/UTB_____.pfa
> /usr/share/X11/fonts/Type1/UTI_____.pfa
> /usr/share/X11/fonts/Type1/UTRG____.pfa
> /usr/share/X11/fonts/Type1/cour.pfa
> /usr/share/X11/fonts/Type1/courb.pfa
> /usr/share/X11/fonts/Type1/courbi.pfa
> /usr/share/X11/fonts/Type1/couri.pfa
> /usr/share/X11/fonts/Type1/cursor.pfa
> /usr/share/X11/fonts/Type1/l047013t.pfa
> /usr/share/X11/fonts/Type1/l047016t.pfa
> /usr/share/X11/fonts/Type1/l047033t.pfa
> /usr/share/X11/fonts/Type1/l047036t.pfa
> /usr/share/X11/fonts/Type1/l048013t.pfa
> /usr/share/X11/fonts/Type1/l048016t.pfa
> /usr/share/X11/fonts/Type1/l048033t.pfa
> /usr/share/X11/fonts/Type1/l048036t.pfa
> /usr/share/X11/fonts/Type1/l049013t.pfa
> /usr/share/X11/fonts/Type1/l049016t.pfa
> /usr/share/X11/fonts/Type1/l049033t.pfa
> /usr/share/X11/fonts/Type1/l049036t.pfa
> /usr/share/a2ps/fonts/pcfont.pfa
> /usr/share/doc/libcap-1.10/capfaq-0.2.txt
> /usr/share/doc/systemtap-client-1.8/examples/memory/pfaults.meta
> /usr/share/doc/systemtap-client-1.8/examples/memory/pfaults.stp
> /usr/share/fonts/default/ghostscript/bchb.pfa
> /usr/share/fonts/default/ghostscript/bchbi.pfa
> /usr/share/fonts/default/ghostscript/bchr.pfa
> /usr/share/fonts/default/ghostscript/bchri.pfa
> /usr/share/fonts/default/ghostscript/hrger.pfa
> /usr/share/fonts/default/ghostscript/hrgrr.pfa
> /usr/share/fonts/default/ghostscript/hritr.pfa
> /usr/share/fonts/default/ghostscript/hrpld.pfa
> /usr/share/fonts/default/ghostscript/hrpldi.pfa
> /usr/share/fonts/default/ghostscript/hrplt.pfa
> /usr/share/fonts/default/ghostscript/hrplti.pfa
> /usr/share/fonts/default/ghostscript/hrscc.pfa
> /usr/share/fonts/default/ghostscript/hrscs.pfa
> /usr/share/fonts/default/ghostscript/putb.pfa
> /usr/share/fonts/default/ghostscript/putbi.pfa
> /usr/share/fonts/default/ghostscript/putr.pfa
> /usr/share/fonts/default/ghostscript/putri.pfa
> /usr/share/ghostscript/8.70/lib/pfbtopfa.ps
> /usr/share/ghostscript/8.70/lib/wftopfa.ps
> /usr/share/groff/1.18.1.1/font/devps/symbolsl.pfa
> /usr/share/groff/1.18.1.1/font/devps/zapfdr.pfa
> /usr/share/man/de/man1/wftopfa.1.gz
> /usr/share/man/man1/pfb2pfa.1.gz
> /usr/share/man/man1/pfbtopfa.1.gz
> /usr/share/man/man1/wftopfa.1.gz
> /usr/share/ogonkify/fonts/pcrb-o.pfa
> /usr/share/ogonkify/fonts/pcrbo-o.pfa
> /usr/share/ogonkify/fonts/pcrr-o.pfa
> /usr/share/ogonkify/fonts/pcrro-o.pfa
> /usr/share/ogonkify/fonts/phvb-o.pfa
> /usr/share/ogonkify/fonts/phvbo-o.pfa
> /usr/share/ogonkify/fonts/phvr-o.pfa
> /usr/share/ogonkify/fonts/phvro-o.pfa
> /usr/share/ogonkify/fonts/ptmb-o.pfa
> /usr/share/ogonkify/fonts/ptmbi-o.pfa
> /usr/share/ogonkify/fonts/ptmr-o.pfa
> /usr/share/ogonkify/fonts/ptmri-o.pfa
> /usr/share/texmf/tex/generic/ukrhyph/ukrhypfa.tex
> [root at vmtest002 log]#
> 
> Johan Bengtsson/Chalmers IT-service_______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups




More information about the cups mailing list