Hi:
I modified the sample code to convert TIFF to PDF. I got an array of TIFF filenames. I loop through the TIFF list to create the PDF file for every TIFF file. But only the first file created correctly. Starting from the second TIFF file, I got the following errors.
java.io.IOException: An attempt was made to move the file pointer before the beginning of the file
at java.io.FileInputStream.skip(Native Method)
at com.cete.dynamicpdf.io.d.skip(Unknown Source)
at com.cete.dynamicpdf.imaging.tiff.n.setPosition(Unknown Source)
at com.cete.dynamicpdf.imaging.tiff.p.a(Unknown Source)
at com.cete.dynamicpdf.imaging.tiff.j.getNextSubFile(Unknown Source)
at com.cete.dynamicpdf.imaging.TiffImageData.d(Unknown Source)
at com.cete.dynamicpdf.imaging.TiffImageDataList.a(Unknown Source)
at com.cete.dynamicpdf.imaging.TiffImageDataList.getCount(Unknown Source)
at com.cete.dynamicpdf.imaging.TiffFile.getDocument(Unknown Source)
at tiff2pdf.TIFFtoPDF(tiff2pdf.java:77)
at tiff2pdf.main(tiff2pdf.java:
What was possibly wrong?
Thanks,
Brian