Hi, It is possible with Apache FOP, and the needed parameter is: -pdfprofile PDF/A-1b
Usage (command line) <https://xmlgraphics.apache.org/fop/1.1/pdfa.html#command-line> To activate PDF/A-1b from the command-line, specify "-pdfprofile PDF/A-1b" as a parameter. If there is a violation of one of the validation rules for PDF/A, an error message is presented and the processing stops. PDF/A-1a is enabled by specifying "-pdfprofile PDF/A-1a". Usage (embedded) <https://xmlgraphics.apache.org/fop/1.1/pdfa.html#embedded> When FOP is embedded in another Java application you can set a special option on the renderer options in the user agent to activate the PDF/A-1b profile. Here's an example: userAgent.getRendererOptions().put("pdf-a-mode", "PDF/A-1b");Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, userAgent);[..] If one of the validation rules of PDF/A is violated, an PDFConformanceException (descendant of RuntimeException) is thrown. For PDF/A-1a, just use the string "PDF/A-1a" instead of "PDF/A-1b". Regards, Laurentiu On Fri, Apr 1, 2016 at 7:55 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > I suggest to research whether its possible with Apache Fop and then > see what may be missing in camel-fop to do this. After all camel-fop > can only do what Apache Fop can do. > > On Thu, Mar 31, 2016 at 2:23 PM, Laurentiu Trica > <laurentiu.tr...@moredevs.ro> wrote: > > Hello, > > > > Do you know any other way to do this? > > Can the component be updated to include this? > > Can I use a custom fopFactory for this? > > > > This is kind of urgent for me. > > > > Regards, > > Laurentiu > > > > On Wed, Mar 30, 2016 at 10:03 AM, Laurentiu Trica < > > laurentiu.tr...@moredevs.ro> wrote: > > > >> Hi Ibryam, > >> > >> I tried that header but it doesn't seem to work. The output looks the > same > >> (same number of bytes, doesn't pass the PDF/A checks > >> http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx) > >> > >> <setHeader headerName="CamelFop.Render.pdf-a-mode"> > >> <constant>PDF/A-1b</constant> > >> </setHeader> > >> > >> Do you have other ideas? > >> > >> Regards, > >> Laurentiu > >> > >> On Tue, Mar 29, 2016 at 10:46 PM, Bilgin Ibryam <bibr...@gmail.com> > wrote: > >> > >>> Can you try to set the following header and see if it works > >>> > >>> CamelFop.Render.pdf-a-mode: "PDF/A-1b" > >>> > >>> HTH, > >>> B > >>> > >>> > >>> On 29 March 2016 at 09:46, Laurentiu Trica < > laurentiu.tr...@moredevs.ro> > >>> wrote: > >>> > Hello, > >>> > > >>> > I need to generate PDF/A files using Camel FOP component. > >>> > I don't see anything about the PDF/A standard in the documentation: > >>> > http://camel.apache.org/fop.html > >>> > > >>> > Can this be done? > >>> > Apache FOP can do this: > >>> > https://xmlgraphics.apache.org/fop/1.1/pdfa.html > >>> > > >>> > Can I use the CamelFop.Output.Format to set the output format? > >>> > > >>> > Thank you! > >>> > > >>> > Regards, > >>> > Laurentiu > >>> > >>> > >>> > >>> -- > >>> Bilgin Ibryam > >>> Camel Committer at ASF & Integration Architect at Red Hat > >>> Blog: http://ofbizian.com | Twitter: @bibryam > >>> > >>> Camel Design Patterns https://leanpub.com/camel-design-patterns > >>> Instant Apache Camel Message Routing > http://www.amazon.com/dp/1783283475 > >>> > >> > >> > > > > -- > Claus Ibsen > ----------------- > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2 >