since ‎30-05-2017
‎10-12-2019
sebastian_wilhe
Level 1
Re: Converting images to PDF using AEM services
Avatar

sebastian_wilhe

sebastian_wilhe
- Adobe Experience Manager
Thank you for the example code, BUT like I wrote above, the conversion PDF->IMAGE already works fine.The problem is the direction IMAGE->PDF !!! Do you have a working example for this case, too?Thanks and RegardsSebastian

Views

3.8K

Likes

0

Replies

1
Converting images to PDF using AEM services
Avatar

sebastian_wilhe

sebastian_wilhe
- Adobe Experience Manager
Hello!For our projects at the Finanzinformatik in Frankfurt we need to convert PDF documents withbarcode to an image format and back to PDF for automated comparison. Converting PDF to image is working fine.But how can an image be converted into a PDF document using AEM services?I have been researching ways with AssemblerService by calling invoke method with DDXand GeneratePdfService, but it only seems to be supported for some office document types.Is there a solution for converting images into P...

Views

4.2K

Likes

0

Replies

5
Re: How to render PDF/A
Avatar

sebastian_wilhe

sebastian_wilhe
- Adobe Experience Manager Forms
Here is the final example code, after all corrections:/* * converts existing PDF file to PDF/A-1b format */ private Document convertToPDFA(Document inputPDF, String xmpFileName) { try { PDFAConversionOptionSpec conversionSpec = new PDFAConversionOptionSpec(); conversionSpec.setLogLevel("FINE"); conversionSpec.setResultLevel(PDFAConversionOptionSpec.ResultLevel.DETAILED); conversionSpec.setCompliance(PDFAConversionOptionSpec.Compliance.PDFA_1B); conversionSpec.setSignatures(PDFAConversionOptionSp...

Views

1.3K

Likes

0

Replies

0
Re: How to render PDF/A
Avatar

sebastian_wilhe

sebastian_wilhe
- Adobe Experience Manager Forms
Hi Nitin,Perfect! This is the solution to the problem!Now I get valid PDF/A-1b.thanks for the help! Regards,Sebastian

Views

1.2K

Likes

0

Replies

0
Re: How to render PDF/A
Avatar

sebastian_wilhe

sebastian_wilhe
- Adobe Experience Manager Forms
And another invalid file type...Rename to xmp

Views

1.2K

Likes

0

Replies

0
Re: How to render PDF/A
Avatar

sebastian_wilhe

sebastian_wilhe
- Adobe Experience Manager Forms
Rename to xdp

Views

1.2K

Likes

0

Replies

0
Re: How to render PDF/A
Avatar

sebastian_wilhe

sebastian_wilhe
- Adobe Experience Manager Forms
Here is the complete RenderServlet code with the two necessary input files.The URL we use:http://localhost:4502/services/render?format=pdfa&xmp=c:/tmp/AEM/schema.xmp&xdp=C:/tmp/AEM/test.xdp

Views

1.2K

Likes

0

Replies

0
Re: How to render PDF/A
Avatar

sebastian_wilhe

sebastian_wilhe
- Adobe Experience Manager Forms
org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:108) org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:80) org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:46) org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:89) org.apache.felix.http.base.internal.hand...

Views

1.2K

Likes

0

Replies

0
Re: How to render PDF/A
Avatar

sebastian_wilhe

sebastian_wilhe
- Adobe Experience Manager Forms
Here the stack trace:com.adobe.fd.assembler.client.ConversionException: AEM-ASM-S02-001: The document named "docConverter.pdf" could not be opened. com.adobe.fd.assembler.service.impl.AssemblerServiceImpl.toPDFA(AssemblerServiceImpl.java:449) osplus.dms.service.renderengine.aemforms.renderer.RenderServlet.convertToPDFA(RenderServlet.java:248) osplus.dms.service.renderengine.aemforms.renderer.RenderServlet.doGet(RenderServlet.java:176) org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayServ...

Views

1.2K

Likes

0

Replies

0
Re: How to render PDF/A
Avatar

sebastian_wilhe

sebastian_wilhe
- Adobe Experience Manager Forms
Hi Nitin,sorry, had some problems with the forum. First i had my former posting twice, then when I delete one, both were gone.So here once again with the stack trace. I am trying to get the PDF/A transformation running, using the following code.try { PDFAConversionOptionSpec conversionSpec = new PDFAConversionOptionSpec(); conversionSpec.setLogLevel("FINE"); conversionSpec.setResultLevel(PDFAConversionOptionSpec.ResultLevel.DETAILED); conversionSpec.setCompliance(PDFAConversionOptionSpec.Complia...

Views

1.2K

Likes

0

Replies

0
Re: How to render PDF/A
Avatar

sebastian_wilhe

sebastian_wilhe
- Adobe Experience Manager Forms
Hi,I am trying to get the PDF/A transformation running, using the following code.try { PDFAConversionOptionSpec conversionSpec = new PDFAConversionOptionSpec(); conversionSpec.setLogLevel("FINE"); conversionSpec.setResultLevel(PDFAConversionOptionSpec.ResultLevel.DETAILED); conversionSpec.setCompliance(PDFAConversionOptionSpec.Compliance.PDFA_1B); conversionSpec.setSignatures(PDFAConversionOptionSpec.Signatures.ARCHIVE_AS_NEEDED); conversionSpec.setColorSpace(PDFAConversionOptionSpec.ColorSpace....

Views

1.2K

Likes

0

Replies

0