wasegraves
Wed, 14 May 2008 10:11:51 -0700
Jamal, Please see inline responses below. Best regards, Bill Segraves P.S. FYI, this is a discussion list, not a help desk, so your prioriies may not be the same as those of other participants. Use of "High Priority" is disrespectful of other participants, as it shows you may have little or no respect for *their* priorities. -------------- Original message ---------------------- From: "Jamal Mohideen" <[EMAIL PROTECTED]> > > Hi There, > > We are facing problem in converting some tiff files to PDF, specifically > CCITT > Fax group 4 compression type files. > > These tiff's are always failing with the method call > "TiffImage.getTiffImage(ra, c + 1);" in Linux environment. > > but when we use the direct read option "TiffImage.getTiffImage(ra, c + 1, > true);", then the conversion generating invalid pdf files (image in pdf is > not > viewable, probably corrupted). > > I have attached the input tiff files and respective PDF generated from the > program. FYI, multiple are added into single PDF file. > FYI, the PDF you posted is not viewable in Adobe Reader 8.1.2. It does show the correct number of pages, but it displays no content. The program you posted should not be expected to work on either Windows or Linux, as it is not a complete program, i.e., it throws 11 errors when I compile it on Windows. You are supposed to post a small, but complete, program that demonstrates/exhibits your problem. > PDF file Image_D435.pdf generated using d435-*.tif and PDF file > Image_D382.pdf > generated using d382-*.tif > Your input files work fine with my program, ScaleAndTile3, when I use it to convert your TIFF files to PDF files. The TIFF conversion in my program is similar to that of the Tiff2Pdf tool in the iText Toolbox. You might try using the Tiff2Pdf tool in the Toolbox to see if it exhibits the same problems you have with Linux. > The conversion is always success when I convert these tiff files in Windows > (Development PC Windows XP SP2), the problem is appearing when running in > Linux. > > Part of Java code used for pdf conversion has been attached with this email. > I see you're using methods from iText 2.1.0 and up that are replacements for (old) methods that were deprecated in the iText 2.0.7 that you used to generate your example PDF. Have you checked the iText JAR file for your Linux installation to see that you're using a compatible version, i.e., one that has the new methods? > Could you please look into the tiff and provide your feedback. > If you'll post the 4-page TIFF file that's causing your problem, I'll be glad to run it through my program to see if it's compatible. > > Thanks and Regards, > Jamal Mohideen P.S. Just curious. Why are you using iText 2.0.7? ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar