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

SilenceNie commented on PDFBOX-5349:
------------------------------------

changed to this:
{code:java}
//代码占位符
private void addFont(ITextFontResolver fontResolver, File fontFile) {
    FontFileFinder fontFileFinder = new FontFileFinder();
    List<URI> uris = fontFileFinder.find();
    if(!uris.isEmpty()){
        try{
            for (URI uri : uris) {
                fontResolver.addFont(uri.getPath(), BaseFont.IDENTITY_H, 
BaseFont.NOT_EMBEDDED);
            }
        }catch (Exception e){
            log.error("Fonts:"+e.getMessage(), e);
        }
    } {code}
i will let you know corrent or incorrent later,thank you sir.

> When PDF is converted to image, the check box is not selected correctly
> -----------------------------------------------------------------------
>
>                 Key: PDFBOX-5349
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5349
>             Project: PDFBox
>          Issue Type: Bug
>          Components: AcroForm, FontBox, Rendering
>    Affects Versions: 2.0.24
>            Reporter: SilenceNie
>            Priority: Major
>
> When PDF is converted to image, the check box is not selected correctly。
> The selected check box should be a check mark, and the result is displayed as 
> a square box。
> !https://stackoom.com/link/aHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS9YaVlHbi5wbmc=!
> The correct display should be like this:
> !https://stackoom.com/link/aHR0cHM6Ly9pLnN0YWNrLmltZ3VyLmNvbS84VHRqUi5wbmc=!
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to