rsc / pdf

PDF reader
BSD 3-Clause "New" or "Revised" License
510 stars 327 forks source link

Text position for certain font might not work #31

Open dayfine opened 5 years ago

dayfine commented 5 years ago

Documenting the issue at least, so people with similar goals with me would know it exists. Basically when some fonts are decoded, it is analyzed character by character, however, all those characters would have the same position coordinates...See screenshot below. I might dig into it and try to fix it. We'll see. Screenshot of text position error

giovanni-annunzio commented 4 years ago

Dear @dayfine,

I experienced the same issue. Additionally, all white spaces were missing. From my point of view this happens when the Font-Object (PDF internals) is missing /FirstChar /LastChar and /Widths attributes.

To preserve white spaces I proposed the pull request #34