pdfparser icon indicating copy to clipboard operation
pdfparser copied to clipboard

DescendantFonts will never be used in Font::decodeContent()

Open likemusic opened this issue 3 years ago • 2 comments

https://github.com/smalot/pdfparser/blob/e056671d50b31d6320a26aa8fbfafd2c02e6bff1/src/Smalot/PdfParser/Font.php#L393-L395

Because Font::translateChar() will never return false:

https://github.com/smalot/pdfparser/blob/e056671d50b31d6320a26aa8fbfafd2c02e6bff1/src/Smalot/PdfParser/Font.php#L92-L118

Seems that translateChar() must not return self::MISSING and possible $fallbackDecoded if char not fount in $this->table map.

likemusic avatar Jan 05 '22 05:01 likemusic

Is it an encoding issue too?

k00ni avatar Jan 05 '22 08:01 k00ni

Is it an encoding issue too?

@k00ni Yep

likemusic avatar Jan 05 '22 13:01 likemusic