You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (Jira)" <ji...@apache.org> on 2020/09/06 16:00:00 UTC

[jira] [Comment Edited] (PDFBOX-4939) Increase test coverage for AcroForm tests

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

Tilman Hausherr edited comment on PDFBOX-4939 at 9/6/20, 3:59 PM:
------------------------------------------------------------------

I assume that {{fontSize}} is {{infinity}}. This would happen when dividing by 0, i.e. size is 0 at line 167 in {{CreateCheckBox.java}}. Which would be because {{PDType1Font.ZAPF_DINGBATS.getPath(name).getBounds2D()}} is empty.

Is there any log message when running {{CreateCheckBox.java}} from your IDE, about a font missing / substituted?


was (Author: tilman):
I assume that fontSize is infinity. This would happen when dividing by 0, i.e. size is 0 at line 167. Which would be because {{PDType1Font.ZAPF_DINGBATS.getPath(name).getBounds2D()}} is empty.

Is there any log message when running {{CreateCheckBox.java}} from your IDE, about a font missing / substituted?

> Increase test coverage for AcroForm tests
> -----------------------------------------
>
>                 Key: PDFBOX-4939
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4939
>             Project: PDFBox
>          Issue Type: Task
>          Components: AcroForm
>    Affects Versions: 2.0.20
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 3.0.0 PDFBox, 2.0.22
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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