[
https://issues.apache.org/jira/browse/PDFBOX-624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845246#action_12845246
]
Andreas Lehmkühler edited comment on PDFBOX-624 at 3/15/10 9:31 AM:
--------------------------------------------------------------------
Thanks for the link. Correct me if I'm wrong. The value is a two's complement
so that we have to use another algo to calculate a short value, than just
shifting the bits. We have to invert all bits and add "1" if the msb is set.
See [1] for further details.
BTW: pdf620-fails.pdf attached to PDFBOX-620 uses that encoding somewhere on
page 4 or 5.
[1] http://en.wikipedia.org/wiki/Two%27s_complement
was (Author: lehmi):
Thanks for the link. Correct me if I'm wrong. The value is a two's
complement so that we have to use another algo to calculate a short value, than
just shifting the bits. We have to invert all bits and add "1" if the msb is
set. See [1] for further details.
BTW: pdf620-fails.pdf attached to PDFBOX-602 uses that encoding somewhere on
page 4 or 5.
[1] http://en.wikipedia.org/wiki/Two%27s_complement
> Misplaced text
> --------------
>
> Key: PDFBOX-624
> URL: https://issues.apache.org/jira/browse/PDFBOX-624
> Project: PDFBox
> Issue Type: Bug
> Components: FontBox, Text extraction, Utilities
> Affects Versions: 1.0.0
> Reporter: Villu Ruusmann
> Priority: Critical
> Fix For: 1.1.0
>
> Attachments: documenta_math-fixed.txt, documenta_math.pdf,
> documenta_math.txt, documenta_math_page4-fixed.png, documenta_math_page4.png,
> FontBox.patch
>
>
> Thomas Fischer reported to [email protected] that
> org.apache.pdfbox.ExtractText interchanges typographic ligatures "fi" and
> "fl". The sample document "documenta_math.pdf" was created using TeX and AFPL
> Ghostscript 6.50.
> I used PDFBox 1.0.1-SNAPSHOT to verify this problem. The "fi" ligature
> behaves correctly (ie. text extraction yields "finite" and "infinite", not
> "flnite" and "inflnite"), but the overall text layout is a complete mess.
> Please see the PDF text extraction result "documenta_math.txt" and PDF
> rendering result "documenta_math_page4.png".
> The cause of the horizontal text misplacement is not yet known. This could
> affect all PDF documents which have been created using TeX.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.