<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [patch] fix pdftops git 30mar15 regression where -passfonts and some other options no longer have an effect"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89827#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [patch] fix pdftops git 30mar15 regression where -passfonts and some other options no longer have an effect"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=89827">bug 89827</a>
              from <span class="vcard"><a class="email" href="mailto:williambader@hotmail.com" title="William Bader <williambader@hotmail.com>"> <span class="fn">William Bader</span></a>
</span></b>
        <pre>Created <span class=""><a href="attachment.cgi?id=114736" name="attach_114736" title="Sample PDF to show the problem">attachment 114736</a> <a href="attachment.cgi?id=114736&action=edit" title="Sample PDF to show the problem">[details]</a></span>
Sample PDF to show the problem

The attached PDF uses the font Spartan-HeavyClassified but does not embed it.
You can use this file to very that the pdftops -passfonts option no longer
works and that these patches fix it.
Some of the other options also no longer work correctly.

pdftops embeds a substituted font by default.
The PS file is 1.2 MB, and gs shows the substituted font even if a file for the
original font is available.
$ pdftops /u/displayads/80698010-killeen-subst.pdf embed.ps
$ ls -l embed.ps 
-rw-rw-rw- 1 william william 1266770 Mar 30 21:46 embed.ps
$ gs -sDEVICE=bit -sOutputFile=junk -dNOPAUSE embed.ps -c quit
GPL Ghostscript RELEASE CANDIDATE 2 9.16 (2015-03-20)
Copyright (C) 2015 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
$

With -passfonts, the PS file is 19 KB, and gs will show the original font if
the font file is available.
$ pdftops -passfonts /u/displayads/80698010-killeen-subst.pdf pass.ps
$ ls -l pass.ps 
-rw-rw-rw- 1 william william 18779 Mar 30 21:46 pass.ps
$ gs -sDEVICE=bit -sOutputFile=junk -dNOPAUSE pass.ps -c quit
GPL Ghostscript RELEASE CANDIDATE 2 9.16 (2015-03-20)
Copyright (C) 2015 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Can't find (or can't open) font file
%rom%Resource/Font/Spartan-HeavyClassified.
Loading Spartan-HeavyClassified font from /u/fonts/Spartan-HeavyClassified...
6467804 4887585 2374160 1075919 1 done.
$</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>