You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Brian Carrier (JIRA)" <ji...@apache.org> on 2009/02/18 22:12:01 UTC
[jira] Created: (PDFBOX-429) PDFontDescriptorDictionary methods
returning negative height values
PDFontDescriptorDictionary methods returning negative height values
-------------------------------------------------------------------
Key: PDFBOX-429
URL: https://issues.apache.org/jira/browse/PDFBOX-429
Project: PDFBox
Issue Type: Bug
Environment: Windows Vista
Reporter: Brian Carrier
Priority: Minor
Attachments: diac-debug2.pdf
With the attached file, PDFontDescriptorDictionary.getXHeight() and PDFontDescriptorDictionary.getCapHeight() will return a negative value from the "dic.getFloat(...)" function. These height values should never be less than 0.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-429) PDFontDescriptorDictionary methods
returning negative height values
Posted by "Brian Carrier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Carrier updated PDFBOX-429:
---------------------------------
Attachment: diac-debug2.pdf
File that results in negative XHeight values.
> PDFontDescriptorDictionary methods returning negative height values
> -------------------------------------------------------------------
>
> Key: PDFBOX-429
> URL: https://issues.apache.org/jira/browse/PDFBOX-429
> Project: PDFBox
> Issue Type: Bug
> Environment: Windows Vista
> Reporter: Brian Carrier
> Priority: Minor
> Attachments: diac-debug2.pdf
>
>
> With the attached file, PDFontDescriptorDictionary.getXHeight() and PDFontDescriptorDictionary.getCapHeight() will return a negative value from the "dic.getFloat(...)" function. These height values should never be less than 0.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PDFBOX-429) PDFontDescriptorDictionary methods
returning negative height values
Posted by "Brian Carrier (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12674782#action_12674782 ]
Brian Carrier commented on PDFBOX-429:
--------------------------------------
Initial patch by Ken Glidden applied that returns the absolute value of the negative number. We were not able to trace down the source of the bug, but this fix seems to give correct numbers.
Sending PDFontDescriptorDictionary.java
Transmitting file data .
Committed revision 745653.
Since we aren't sure if it is actually the correct fix, I will leave this open.
> PDFontDescriptorDictionary methods returning negative height values
> -------------------------------------------------------------------
>
> Key: PDFBOX-429
> URL: https://issues.apache.org/jira/browse/PDFBOX-429
> Project: PDFBox
> Issue Type: Bug
> Environment: Windows Vista
> Reporter: Brian Carrier
> Priority: Minor
> Attachments: diac-debug2.pdf
>
>
> With the attached file, PDFontDescriptorDictionary.getXHeight() and PDFontDescriptorDictionary.getCapHeight() will return a negative value from the "dic.getFloat(...)" function. These height values should never be less than 0.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PDFBOX-429) PDFontDescriptorDictionary methods
returning negative height values
Posted by "Kenneth Glidden (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PDFBOX-429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kenneth Glidden updated PDFBOX-429:
-----------------------------------
Attachment: PDFontDescriptorDictionary.java
For the record and to establish authorship and transfer of rights to ASF, I've attached PDFontDescriptorDictionary.java which contains the changes that Brian checked in for me on 18/Feb/09.
> PDFontDescriptorDictionary methods returning negative height values
> -------------------------------------------------------------------
>
> Key: PDFBOX-429
> URL: https://issues.apache.org/jira/browse/PDFBOX-429
> Project: PDFBox
> Issue Type: Bug
> Environment: Windows Vista
> Reporter: Brian Carrier
> Priority: Minor
> Attachments: diac-debug2.pdf, PDFontDescriptorDictionary.java
>
>
> With the attached file, PDFontDescriptorDictionary.getXHeight() and PDFontDescriptorDictionary.getCapHeight() will return a negative value from the "dic.getFloat(...)" function. These height values should never be less than 0.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.