You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Juraj Lonc (JIRA)" <ji...@apache.org> on 2014/05/22 09:13:38 UTC

[jira] [Updated] (PDFBOX-2089) Negative width of character

     [ https://issues.apache.org/jira/browse/PDFBOX-2089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juraj Lonc updated PDFBOX-2089:
-------------------------------

    Attachment: negative_width.pdf

> Negative width of character
> ---------------------------
>
>                 Key: PDFBOX-2089
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2089
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Juraj Lonc
>         Attachments: negative_width.pdf
>
>
> This PDF contains text matrix:
> -10.5679 0 0 -11.4 459.0349 19.4155 Tm
> that causes IMHO wrong calculation of character width (and height).
> Width and height calculated in PDFStreamEngine are negative numbers, because textMatrix.getXScale() gives negative value.
> I think it should be fixed in Matrix.getXScale() and Matrix.getYScale(). Returning value should be fixed by Math.abs()



--
This message was sent by Atlassian JIRA
(v6.2#6252)