[
https://issues.apache.org/jira/browse/PDFBOX-2788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14530812#comment-14530812
]
Tilman Hausherr commented on PDFBOX-2788:
-----------------------------------------
The document has only global resources, but PDFBox sets up a local page
resource for your font so the inheritable resource dictionary is "lost" (the
resources are inherited as a whole _only_ if missing), i.e. there is no
"merging" from different levels. I'll see if I can fix that one by using
findResources() instead of getResources() in PDPageContentStream.
> Seemingly good document gets semi-corrupted
> -------------------------------------------
>
> Key: PDFBOX-2788
> URL: https://issues.apache.org/jira/browse/PDFBOX-2788
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 1.8.9
> Environment: Ubuntu Linux 14.04, Java SE 7
> Reporter: Are Husby
> Assignee: Tilman Hausherr
> Attachments: Reproduce possible bug in PdfBox.zip
>
>
> I use PdfBox to insert a little bit of text at the top of my PDF-documents. I
> have found one case (one input document) where the resulting document
> appears to become semi-corrupted by PdfBox.
> I will try to attach to this Jira issue a zip file with the PDF document in
> case and a small, self-contained Java application that allows you to easily
> reproduce the problem.
> The text I try to insert is inserted okay and is not the problem. The problem
> is that other parts of the documents seem to get destroyed. You see this by
> comparing the original document with the processed document in a PDF document
> viewer.
> The problem manifests itself in different ways depending on which PDF
> document viewer application I use. I have tried Evince (comes as default on
> Ubuntu Linux 14.04), Firefox (also as default in Ubuntu), Google Chrome, and
> Adobe Acrobat Reader v.11 (both on Windows 7 Enterprise and in Ubuntu with
> Wine, the Windows emulator).
> I you use for example Adobe ACrobat Reader, look in particular for the logo
> image in the upper right corner of both pages, the fonts and the formatting
> of the line on the second page near the bottom that says "Fakturasum: 2
> 572,50".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]