[poppler] pfdtocairo altering bbox of embedded font
Oliver Sander
oliver.sander at tu-dresden.de
Mon May 18 16:08:55 UTC 2020
Hi Ken,
can you open an actual bug report at
https://gitlab.freedesktop.org/poppler/poppler
and attach the file? Helping is a lot easier with the problematic file.
Best,
Oliver
On 18.05.20 16:31, Ken Sands wrote:
> Hello all, I tried to run a pdf through pdftocairo in order to embed some non embedded fonts to ready a file for sending off to a printer.
> The fonts embedded just fine, however of the fonts that were already embedded one (helvetica) was assigned a new negative bbox.
>
> While that doesn't appear to cause any issues with appearance it does cause adobe reader to throw up a BLABLA_Helvetica contains a bad /BBox message box.
>
> I checked the original file and the font in there has FontBBox[ -951 -481 1446 1122]
>
> I checked the file after pdftocairo and it's /FontBBox [ 31049 -480 1445 1121 ]
>
> I edited the resulting file to [ -951 -480 1445 1121 ] and the error is gone, to be sure I diff checked the output and all 3 are visually identical.
>
> Looking at those numbers it seems to me there is a fairly simple int -> uint thing slipping through somewhere, and I'm happy to try to track it down but wish to narrow my search.
>
> So I duely googled for a few hours and I'm aware this could well be either cairo or a font library issue rather than poppler however I'm no wiser and hoped one of you could at least shuffle me in the most likely direction, thanks.
>
> --
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Ken
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/poppler
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5198 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.freedesktop.org/archives/poppler/attachments/20200518/8cd9702e/attachment.bin>
More information about the poppler
mailing list