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

Allow Attachments for PDF/A-3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.2
    • renderer/pdf
    • probably any

    Description

      Embedded files should be allowed for PDF/A-3, e.g. required by the german "Zugferd" invoice standard, but:

      SEVERE: Exception
      org.apache.fop.apps.FOPException: PDF/A-3b does not allow embedded files.
      org.apache.fop.pdf.PDFConformanceException: PDF/A-3b does not allow embedded files.
      at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:288)
      at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
      at org.apache.fop.cli.Main.startFOP(Main.java:186)
      at org.apache.fop.cli.Main.main(Main.java:217)
      Caused by: org.apache.fop.pdf.PDFConformanceException: PDF/A-3b does not allow embedded files.
      at org.apache.fop.pdf.PDFProfile.verifyEmbeddedFilesAllowed(PDFProfile.java:336)
      at org.apache.fop.render.pdf.PDFRenderingUtil.addEmbeddedFile(PDFRenderingUtil.java:651)
      at org.apache.fop.render.pdf.PDFDocumentHandler.handleExtensionObject(PDFDocumentHandler.java:318)
      at org.apache.fop.render.intermediate.util.IFDocumentHandlerProxy.handleExtensionObject(IFDocumentHandlerProxy.java:192)
      at org.apache.fop.render.intermediate.IFRenderer.processOffDocumentItem(IFRenderer.java:325)
      at org.apache.fop.area.RenderPagesModel.handleOffDocumentItem(RenderPagesModel.java:232)
      at org.apache.fop.area.AreaTreeHandler.addOffDocumentItem(AreaTreeHandler.java:376)
      at org.apache.fop.area.AreaTreeHandler.wrapAndAddExtensionAttachments(AreaTreeHandler.java:245)

      Attachments

        1. test_sampembed.fo
          1 kB
          Stefan Hegny
        2. fop.xconf
          0.4 kB
          Simon Steiner

        Activity

          People

            ssteiner Simon Steiner
            shyrodgau Stefan Hegny
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: