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

Bug#533902: texlive-extra-utils: Upgrade epstopdf with font embedding



Package: texlive-extra-utils
Version: 2007.dfsg.2-6
Severity: wishlist
Tags: patch

The current version of epstopdf doesn't support the embedding of fonts to
the PDF files. The enclosed patch upgrades epstopdf with this feature plus
an option to specify arbitrary ghostscript options.
--- usr/bin/epstopdf	2009-04-16 14:48:38.000000000 +0200
+++ /home/hansi/bin/epstopdf	2009-06-21 15:16:48.000000000 +0200
@@ -61,13 +61,15 @@
 #    * This has become the official version for now
 #  2005/10/06 v2.9.5gw (Gerben Wierda)
 #    * Fixed a horrendous bug in the (atend) handling code
+#  2009/06/21 v2.9.6jg (Johann Glaser)
+#    * Added --embed and --gsopts options
 #
 
 ### program identification
 my $program = "epstopdf";
-my $filedate="2006/01/29";
-my $fileversion="2.9.5gw";
-my $copyright = "Copyright 1998-2006 by Sebastian Rahtz et al.";
+my $filedate="2009/06/21";
+my $fileversion="2.9.6jg";
+my $copyright = "Copyright 1998-2009 by Sebastian Rahtz et al.";
 my $title = "\U$program\E $fileversion, $filedate - $copyright\n";
 
 ### ghostscript command name
@@ -84,6 +86,7 @@
 $::opt_exact=0;
 $::opt_filter=0;
 $::opt_outfile="";
+$::opt_embed=0;
 
 ### usage
 my @bool = ("false", "true");
@@ -92,12 +95,14 @@
 Options:
   --help:           print usage
   --outfile=<file>: write result to <file>
+  --gsopts=<opts>:  options passed to ghostscript
   --(no)filter:     read standard input   (default: $bool[$::opt_filter])
   --(no)gs:         run ghostscript       (default: $bool[$::opt_gs])
   --(no)compress:   use compression       (default: $bool[$::opt_compress])
   --(no)hires:      scan HiResBoundingBox (default: $bool[$::opt_hires])
   --(no)exact:      scan ExactBoundingBox (default: $bool[$::opt_exact])
   --(no)debug:      debug informations    (default: $bool[$::opt_debug])
+  --(no)embed:      embed fonts           (default: $bool[$::opt_embed])
 Examples for producing 'test.pdf':
   * $program test.eps
   * produce postscript | $program --filter >test.pdf
@@ -116,7 +121,9 @@
   "gs!",
   "hires!",
   "exact!",
+  "embed!",
   "outfile=s",
+  "gsopts=s",
 ) or die $usage;
 
 ### help functions
@@ -156,6 +163,13 @@
 my $GSOPTS = "";
 $GSOPTS = "-dUseFlateCompression=false " unless $::opt_compress;
 
+### option gsopts
+my $AddGSOPTS = $::opt_gsopts;
+$GSOPTS .= $AddGSOPTS . " ";
+
+### option embed
+$GSOPTS .= "-dPDFSETTINGS=/prepress " if $::opt_embed;
+
 ### option BoundingBox types
 my $BBName = "%%BoundingBox:";
 !($::opt_hires and $::opt_exact) or

Reply to: