Hi All,
I’m working on DOCX to PDF conversion on workflow, facing a strange issue. I’m able to convert to PDF but images in given DOCX are missing in converted PDF. its working as expected when I ran as a standalone java program. it happening only when I ran thru on AEM. I’m using following dependencies, AEM version is 6.1
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.11</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>3.11</version>
</dependency>
Java Code:
FileInputStream in=new FileInputStream("D:\\docs\\doc1.docx");
XWPFDocument document=new XWPFDocument(in);
File outFile=new File("D:\\docs\\DocxStructures_1.pdf");
OutputStream out=new FileOutputStream(outFile);
PdfConverter.getInstance().convert(document,out,options);
The above code work fine as standalone java program. Is anything I’m missing? am I missing any config updates? Any pointers would be greatly helpful.
Thanks in Advance!