[
https://issues.apache.org/jira/browse/PDFBOX-1289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Lehmkühler resolved PDFBOX-1289.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.7.0
Assignee: Andreas Lehmkühler
I fixed the issue by calling getFonts instad of creating a new HashMap in
revision 1327177.
Thanks for the hint!
> PDResources overrides any existing font when calling addFont
> ------------------------------------------------------------
>
> Key: PDFBOX-1289
> URL: https://issues.apache.org/jira/browse/PDFBOX-1289
> Project: PDFBox
> Issue Type: Bug
> Components: PDModel
> Affects Versions: 1.7.0
> Reporter: Jean-Philippe Bougie
> Assignee: Andreas Lehmkühler
> Fix For: 1.7.0
>
>
> If you call addFont on a PDResource (for example, while calling setFont on a
> PDPageContentStream) without first having manually called getFonts on the
> resource, the "fonts" field will be set to a new hashmap. It will thus forego
> loading any existing font from the dictionary, and make those fonts disappear
> when saving the file again. The bug was probably introduced by the removal of
> the font mapping in the resources.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira