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

Free Support Forum - aspose.com

Aspose.Words problem converting

Hi , i have a Problem when converting tif-2-pdf. i attached the tif file to this post i am using asposee.words.jdk16

11.7.0

Log File Says:

2013-08-14 10:35:38,123 | INFO | WebContainer : 0 | converter.aspose.AsposeConverter | convert called, input '/var/jep/pdfservice/e5ca51d4-7922-4c00-a408-0ee550395fc8/input.tif' type 'tif', output '/var/jep/pdfservice/e5ca51d4-7922-4c00-a408-0ee550395fc8/output.pdf' type 'pdf'2013-08-14 10:35:38,139 | FATAL | WebContainer : 0 | converter.aspose.AsposeWords | java.lang.IllegalStateException: Unable to read tiff stream at com.aspose.ms.imagecodecs.tiff.spi.TiffImageReader.init(Unknown Source) at com.aspose.ms.imagecodecs.tiff.spi.TiffImageReader.getNumImages(Unknown Source) at ch.raiffeisen.pdf.converter.aspose.AsposeWords.convertImageToPdf(AsposeWords.java:245) at ch.raiffeisen.pdf.converter.aspose.AsposeWords.convert(AsposeWords.java:86) at ch.raiffeisen.pdf.converter.aspose.AsposeConverter.convert(AsposeConverter.java:184)

My Environment:

java version “1.6.0”<?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /><o:p></o:p>

Java™ SE Runtime Environment (build
pap6460sr12-20121025_01(SR12))<o:p></o:p>

IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 AIX
ppc64-64 jvmap6460sr12-20121024_126067 (JIT enabled, AOT enabled)<o:p></o:p>

J9VM - 20121024_126067<o:p></o:p>

JIT - r9_20120914_26057<o:p></o:p>

GC - 20120928_AA)<o:p></o:p>

JCL

  • 20121014_01<o:p></o:p>

Operating-System:
AIX<o:p></o:p>


OS-Version:
7100-02-02-1316

Hi Dierk,


Thanks for your inquiry. You can not directly load an Image file into Aspose.Words DOM (Document Object Model). However, you can easily convert an Image to PDF format by using the code suggested in the following article:
http://www.aspose.com/docs/display/wordsjava/How+to++Convert+an+Image+to+PDF

I hope, this will help.