Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative width for text string #192

Open
andrewathalye opened this issue Mar 7, 2025 · 1 comment
Open

Negative width for text string #192

andrewathalye opened this issue Mar 7, 2025 · 1 comment

Comments

@andrewathalye
Copy link

Hello, thank you for writing pdfalto! It’s proven invaluable for making my own DjVu conversion software.

In the attached test file string p1_w47 incorrectly reports a negative width and part of the string should be on the next line, logically speaking.

Excerpt attached:

<String ID="p1_w47" CONTENT="мы̀та́рѧГ" HPOS="297.850" VPOS="287.710" WIDTH="-230.13" HEIGHT="27.7200" STYLEREFS="font4"/>

in.pdf

@andrewathalye
Copy link
Author

This test file is a pretty good stress test anyway, with the amount of diacritics it contains. Performance seems to be fine, it’s just the negative width that’s causing a bit of trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant