[Poppler-bugs] [Bug 89827] [patch] fix pdftops git 30mar15 regression where -passfonts and some other options no longer have an effect

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Mar 30 12:58:26 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=89827

--- Comment #1 from William Bader <williambader at hotmail.com> ---
Created attachment 114736
  --> https://bugs.freedesktop.org/attachment.cgi?id=114736&action=edit
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.
$

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20150330/e82044f6/attachment.html>


More information about the Poppler-bugs mailing list