There's partial support for old jpeg and none for new jpeg. Partial support 
means that the image must be in a single band and must work without 
decompression in PDF.

Paulo

----- Original Message ----- 
From: "Weber, Eduard-Klaus (IT/I1S)" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, June 29, 2006 6:46 PM
Subject: [iText-questions] iText ~ Multipage TIFF ~ Old JPEG / JPEG



hello,

i'm trying to use itext with multipage tiff.
first i head the problem with rawsperstrip, wich is resolved with iText
1.4.1.

unfortunately i have now a further problem:

I have a multipage tiff file with 5 jpeg pictures in old jpeg format.
TiffImage.getNumberOfPages(ra) returns the right number of pictures.
TiffImage.getTiffImage(ra, i) don't return a valid jpeg document.

after saving the multipage tiff using different formats, i determined
the following:
- multipage tiff with no compression:        works well
- multipage tiff with lzw compression:       works well
- multipage tiff with packbits compression:  works well
- multipage tiff with zip compression:       works well
- multipage tiff with jpeg compression:      dont works (skipped by the
getTiffImage() method)

while calling TiffImage.getTiffImage() for the first image using the
original multipage tiff file with old jpeg, following tags where found:
TIFFTAG_BITSPERSAMPLE     =8
TIFFTAG_COMPRESSION       =6
TIFFTAG_IMAGELENGTH       =480
TIFFTAG_IMAGEWIDTH        =640
TIFFTAG_JPEGACTABLES      =793
TIFFTAG_JPEGDCTABLES      =768
TIFFTAG_JPEGIFBYTECOUNT   =411
TIFFTAG_JPEGIFOFFSET      =520
TIFFTAG_JPEGPROC          =1
TIFFTAG_JPEGQTABLES       =634
TIFFTAG_ORIENTATION       =1
TIFFTAG_PHOTOMETRIC       =2
TIFFTAG_PLANARCONFIG      =1
TIFFTAG_RESOLUTIONUNIT    =2
TIFFTAG_ROWSPERSTRIP      =480
TIFFTAG_SAMPLESPERPIXEL   =3
TIFFTAG_STRIPBYTECOUNTS   =54007
TIFFTAG_STRIPOFFSETS      =931
TIFFTAG_SUBFILETYPE       =0

The total length of the file is: 227507 bytes
The indexes of the jpeg start points FF+D8 (manually searched):
520
55450
107352
150252
196456
After saving the segments to files with the jpg extension, i find out,
that those files where valid.
It seems that the multipage tiff whith old jpeg format is constructed as
follows:
from index      0 to    519: header
from index    520 to  55449: first  jpeg file
from index  55450 to 107351: second jpeg file
from index 107352 to 150251: third  jpeg file
from index 150252 to 196455: fourth jpeg file
from index 196456 to 227506: fourth jpeg file

how can i make itext work with multipage tiff containing old jpeg (and
perhaps jpeg) files?
thank you for the support!

Eduard-Klaus Weber

 <<Eduard-Klaus Weber.vcf>>


*******************************************************************************
Diese eMail enthaelt vertrauliche und/oder rechtlich geschuetzte 
Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese eMail irrtuemlich 
erhalten
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese 
Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht
gestattet.

This email may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this email
in error) please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the material
in this email is strictly forbidden.
*******************************************************************************




--------------------------------------------------------------------------------


> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job 
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


--------------------------------------------------------------------------------


> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to