xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Furini (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FOP-2441) pdf:embedded-file extension is broken, gives NullPointerException
Date Fri, 23 Jan 2015 22:30:35 GMT
Luca Furini created FOP-2441:
--------------------------------

             Summary: pdf:embedded-file extension is broken, gives NullPointerException
                 Key: FOP-2441
                 URL: https://issues.apache.org/jira/browse/FOP-2441
             Project: Fop
          Issue Type: Bug
          Components: renderer/pdf
    Affects Versions: trunk
            Reporter: Luca Furini
            Priority: Minor


The extension property pdf:embedded-file (to attach files to the pdf) is not working, and
generates a NullPointerException.

I noticed the problem while trying to write an answer to this StackOverflow question: http://stackoverflow.com/questions/28110607/unable-to-add-an-attachment-to-a-pdf-while-using-fop

(the question is about a different problem, but while testing on fop-trunk I noticed this
bug I'm reporting).

Looking at the revision history, I think the implementation of this extension  has been broken
since revision [1522934].

I'm going to attach a simple fo file showing the problem, together with a proposed patch.

I have been a fop committer for some time, followed by a looong period of just lurking the
mailing list; I tried to commit the changes myself, but I guess my long inactivity period
has caused the revocation of my commit privileges.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message