We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Problem converting ms-word (tif-image included / linked) to pdf/a

hello guys,


we got some converting-problems with ms-word (.doc / .docx) documents when tif-images are included / are linked in.
the result-pdf shows a white box with a red cross within instead of the image.

we use aspose.words.16.11.0 and aspose.pdf.16.11.0.
our code looks like the following:

License lic = new License();
lic.setLicense(…);
PdfSaveOptions pdfOps = new PdfSaveOptions();
Document doc = new Document(source.getAbsolutePath());
Document dstDoc = (Document)doc.deepClone();
pdfOps.setCompliance(PdfCompliance.PDF_A_1_B);

dstDoc.save(target.getAbsolutePath(), pdfOps);

i`ve attached a compressed zip-file, where some test-documents are included.
the file original.doc was created in our customers environment/workflow (2 jpg / 1 tiff), the rest are testfiles, created by myself.
the file original.aspose.pdf shows the conversion-result, done by the aspose-library.

it would be great if you can take a look at this.
if you need any further infromation just let know.

kind regards
thomas



Hi Thomas,

Thanks for your inquiry. Please note that Aspose.Words for Java depends upon the Java Advanced Imaging (JAI) package from Sun in order to process some image formats such as TIFF. You need to include JAI jar files in your application. Please read about system requirements.

Moreover, your document (original.doc) contains the INCLUDEPICTURE field. Please make sure that the images are accessible. We suggest you please upgrade to the latest version of Aspose.Words for Java 16.11.0.