Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2441

pdf:embedded-file extension is broken, gives NullPointerException

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 2.5
    • 2.2
    • renderer/pdf
    • None

    Description

      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.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            lfurini Luca Furini
            lfurini Luca Furini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment