Summary: | [patch] fix pdftops git 30mar15 regression where -passfonts and some other options no longer have an effect | ||
---|---|---|---|
Product: | poppler | Reporter: | William Bader <williambader> |
Component: | utils | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | williambader |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
patch to fix the problem
Sample PDF to show the problem |
Description
William Bader
2015-03-30 19:43:00 UTC
Created attachment 114736 [details]
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.
$
Pushed. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.