pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PDFBOX-4509) Font appears twice in resources of field widget
Date Tue, 09 Apr 2019 11:44:00 GMT

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

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

Commit 1857171 from Tilman Hausherr in branch 'pdfbox/branches/2.0'
[ https://svn.apache.org/r1857171 ]

PDFBOX-4509: SonarQube fix

> Font appears twice in resources of field widget
> -----------------------------------------------
>
>                 Key: PDFBOX-4509
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4509
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: AcroForm
>    Affects Versions: 2.0.14
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>            Priority: Major
>             Fix For: 2.0.16, 3.0.0 PDFBox
>
>         Attachments: SimpleForm-Updated.pdf
>
>
> See {{Root/Pages/Kids/[0]/Annots/[0]/AP/N/Resources/Font}} in the attached file, it has
Helv and F2. The file was produced with the CreateSimpleForm example, reloaded and modified
and saved.
> The cause is that when the content stream is created, the "Helv" font is added to the
resources. In a classic "create a PDF" scenario, PDFBox would notice that the font is already
there, but this fails, because the dictionary contains the font, +but as an indirect object+
{color:#333333}so it doesn't get found{color} (see {{COSDictionary.containsValue()}}.
> Solution: check the resource dictionary the hard way in PDResources. I'll do it only
for fonts for now.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message