[ 
https://issues.apache.org/jira/browse/FOP-2625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Hegny updated FOP-2625:
------------------------------
    Attachment: test_sampembed.fo

process with -pdfprofile 'PDF/A-3a' and a config file that includes Times (e.g. 
Nimbus Roman from ghostscript). A quick&dirty patch is here: 
https://stackoverflow.com/questions/35015079/fop-pdf-a-3b-does-not-allow-embedded-files/38393673#38393673

> Allow Attachments for PDF/A-3
> -----------------------------
>
>                 Key: FOP-2625
>                 URL: https://issues.apache.org/jira/browse/FOP-2625
>             Project: FOP
>          Issue Type: Bug
>          Components: renderer/pdf
>    Affects Versions: 2.1
>         Environment: probably any
>            Reporter: Stefan Hegny
>            Priority: Minor
>              Labels: pdf, pdf/a
>         Attachments: test_sampembed.fo
>
>
> 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)



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

Reply via email to