Importing PDF using Poppler makes text bold

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
mc7
Posts: 1
Joined: Wed Dec 17, 2014 6:27 am

Importing PDF using Poppler makes text bold

Postby mc7 » Wed Dec 17, 2014 7:13 am

Before-PDF viewed in PDF-XChange.PNG
What the text looks like viewed in PDF-XChange in the original PDF file.
Before-PDF viewed in PDF-XChange.PNG (7.35 KiB) Viewed 7836 times


After-Poppler bold.PNG
What the text looks like after being converted to paths by Poppler and saved as an SVG.
After-Poppler bold.PNG (7.04 KiB) Viewed 7836 times

Using Poppler to turn text in a PDF into paths as it's imported has the annoying side-effect of making the text slightly more bold once it has been converted into paths.

I was going to attach the original PDF file and new SVG file but I get a message saying "The file is too big, maximum allowed size is 256 KiB."

Poppler is a great feature, but making text bold seems like an unnecessary distortion. Can this be fixed?

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Importing PDF using Poppler makes text bold

Postby tylerdurden » Thu Dec 18, 2014 11:23 am

Maybe the file can be uploaded to a sharing site and linked.

Might just be the font is being replaced by something close (or, is this seen on all fonts, even those resident on the machine?).
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Importing PDF using Poppler makes text bold

Postby ~suv » Fri Dec 19, 2014 8:05 pm

Likely your system has a recent version of freetype (>= 2.5.0) installed (or you might use the 64bit Windows packages of Inkscape 0.91pre which include freetype 2.5.3). Freetype >= 2.5.0 uses the new Adobe CFF engine driver by default. This may result in such differences (small type is rendered darker). Poppler's command line tool 'pdftocairo' is equally affected.

Not an Inkscape bug AFAICT: the change in freetype - switch to the new CFF engine contributed by Adobe - was intentional. Whether and/or which upstream library needs to adjust to the freetype changes (or offer runtime options to control which engine is used by clients) I can't tell, could be poppler, or cairo.

  • Issue reproduced on OS X 10.7.5 with 'default' freetype 2.5.4, pdftocairo from poppler 0.29, Inkscape 0.48.5 as well as Inkscape 0.91+devel r13803.
  • The effect of which CFF engine is used in freetype was confirmed by recompiling freetype 2.5.4 with the old CFF engine enabled (and thus used by default, as described in 'ftcffdrv.h'): text gets outlined as expected, even at small sizes - both with Inkscape's import via poppler and with 'pdftocairo -svg' on the command line.


Return to “Discuss Software Issues”