[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#413652: Processed: Re: Bug#411651: epstopdf: embedding all fonts (small patch)



Dear Péter,

here's one more suggestion regarding a2ping.  This started with a Debian
user providing a patch to epstopdf, adding an option that would make
sure that all fonts are embedded in a PDF file created from EPS.  I
think such an option would also make sense for a2ping.  In fact I think
this should be the default - dvips has switched to embed even the basic
35 fonts, and this is what Adobe recommends (AFAIK).

On the other hand, a2ping already has low-level support for that
(contrary to epstopdf), because one can use --gsextra to pass options to
ghostscript and thus achieve font embedding.

So the other suggestion is that this option should be documented better
(in the manpage, it's only mentioned in the changelog).  I looked at the
manpage, and while I was at it, I wrote a complete new "OPTIONS"
section.  Attached is the diff to a2ping.pl, feel free to use the text
under any license or non-license you prefer, or throw it away.

Regards, Frank

--- a2ping.pl.orig	2007-03-06 13:46:01.000000000 +0100
+++ a2ping.pl	2007-03-06 14:12:35.000000000 +0100
@@ -2360,14 +2360,97 @@
 PNM output formats are PGM, PGM and PPM. To write PNM output formats, GS
 is used.
 
+=head1 OPTIONS
 
-=head1 TIPS AND TRICKS
+=head2 General Options
 
 =over 2
 
-=item *
+=item B<-h>, B<--help>
+
+Show a summary of the usage
+
+=item B<--doc>
+
+Show the man page
+
+=item B<-v>, B<--(no)verbose>
+
+Show progress and debug messages (default: no)
+
+=head2 Options for the Bounding box
+
+=item B<--(no)hires>
+
+Use HiResBoundingBox in the input file, if present (default: yes)
+
+=item B<--(no)exact>
+
+Use ExactBoundingBox in the input file, if present (default: no)
+
+=item B<--(no)keepoldmediabox>
+
+keep only old, [0 0]-based MediaBox in PDF (default: no)
+
+=item B<--bboxfrom=>I<adsc|compute-gs|guess|pagesize>
+
+Method for determining the BoundingBox  (default: guess)
+
+=item B<--(no)below>
+
+Allow page content below and left of the origin (default: no)
+
+
+=head2 Options for graphics and fonts
+
+=item B<--(no)compress>
+
+use compression                   (default: best)
+
+=item B<--(no)antialias>
+
+render shades at outlines.  Possible values: (=I<scale3yes> =I<no> =I<yes>)  (default: scale3no)
 
-Call with the B<-v> option to see progress and debug messages.
+=item B<--(no)lossy>
+
+allow lossy image filters (EPS->PDF) (default: yes)
+
+=item B<--papersize=>I<unchanged|force-unknown|600bpx5cm>
+
+(default: default) (bp)
+
+=item B<--threshold=>
+
+min color for 1 in 8->1 bit conv  (default: 128)
+
+
+=head2 Options for debugging and changing internals
+
+=item B<--(no)tmpunlink>
+
+Unlink temporary files (default: yes).  Use B<--notmpunklink> if you
+want to inspect intermediate files.
+
+=item B<--gs-cmd=>I<path>
+
+path to Ghostscript program (default: gs or gswin32c)
+
+=item B<--gs-ccmd=>I<path>
+
+path to Ghostscript for BoundingBox calculation (default: gs or gswin32c)
+
+=item B<--gsextra=>I<GS_ARGS>
+
+Pass extra arguments to gs
+
+=item B<--extra=>
+
+Pass extra arguments to external program (i.e pdftops)
+
+
+=head1 TIPS AND TRICKS
+
+=over 2
 
 =item *
 
@@ -2433,6 +2516,11 @@
 is going to be really big, you should specify B<--AntiAlias=yes> instead of
 the default B<--AntiAlias=scale3no> to speed up conversion.
 
+=item * 
+
+To make sure fonts are included in a PDF file generated from eps, use
+B<--gsextra='-dEmbedAllFonts=true -dPDFSETTINGS=/printer'>.
+
 =back
 
 
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)


Reply to: