[ 
https://issues.apache.org/jira/browse/PDFBOX-5763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17815150#comment-17815150
 ] 

ASF subversion and git services commented on PDFBOX-5763:
---------------------------------------------------------

Commit 1915613 from Tilman Hausherr in branch 'pdfbox/branches/3.0'
[ https://svn.apache.org/r1915613 ]

PDFBOX-5763: avoid Infinity, as suggested by GooDer; closes #183

> IllegalArgumentException: -Infinity is not a finite number
> ----------------------------------------------------------
>
>                 Key: PDFBOX-5763
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5763
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm
>    Affects Versions: 2.0.30, 3.0.1 PDFBox
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.31, 3.0.2 PDFBox, 4.0.0
>
>
> {noformat}
> Exception in thread "main" java.lang.IllegalArgumentException: -Infinity is 
> not a finite number
>       at 
> org.apache.pdfbox.pdmodel.PDAbstractContentStream.writeOperand(PDAbstractContentStream.java:1392)
>       at 
> org.apache.pdfbox.pdmodel.PDAbstractContentStream.setFont(PDAbstractContentStream.java:217)
>       at 
> org.apache.pdfbox.pdmodel.PDAppearanceContentStream.setFont(PDAppearanceContentStream.java:36)
>       at 
> org.apache.pdfbox.pdmodel.interactive.form.PDDefaultAppearanceString.writeTo(PDDefaultAppearanceString.java:297)
>       at 
> org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.insertGeneratedAppearance(AppearanceGeneratorHelper.java:531)
>       at 
> org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.setAppearanceContent(AppearanceGeneratorHelper.java:447)
>       at 
> org.apache.pdfbox.pdmodel.interactive.form.AppearanceGeneratorHelper.setAppearanceValue(AppearanceGeneratorHelper.java:263)
>       at 
> org.apache.pdfbox.pdmodel.interactive.form.PDTextField.constructAppearances(PDTextField.java:262)
> {noformat}
> I was able to reproduce it with the CreateSimpleForm example by using a 0 
> font size, an empty string and a field rectangle width of 1.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to