You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Poppenborg, Franz" <Po...@Buhlmann.de> on 2003/08/28 13:39:04 UTC

Problem viewing TIFF in PDF File

Hi,

i am using FOP to assemble b/w images with some text in the footnote into a
PDF.

Now i got a problem with images which come from a certain scanner. FOP seems
to render those images but i cant see them in the resulting pdf. Acrobat
also displays the following error message "Insufficient data for an image".
By the way the image seems to be in the pdf. There are tags for the images
in it, like "/Image./Name /Im1./ ... ./BitsPerComponent 1./ColorSpace
/DeviceGray./Filter /CCITTFaxDecode ./DecodeParms << /K -1 /Columns 1664
>>".

When i look at the TIFF Files the headers present me the following data:
The good one:
Page 1 of 1
IFD OFFSET = 116
The number of tags = 16

254 New Subfile Type     LONG     1      2        (2 Hex) 
256 Image Width          LONG     1      1648     (670 Hex) 
257 Image Length         LONG     1      2338     (922 Hex) 
258 Bits Per Sample      SHORT    1      1      
259 Compression          SHORT    1      4      
262 Photometric          SHORT    1      0      
266 Fill Order           SHORT    1      1      
273 Strip Offsets        LONG     1      314      (13a Hex) 
277 Samples Per Pixel    SHORT    1      1      
278 Rows Per Strip       LONG     1      2338     (922 Hex) 
279 Strip Byte Counts    LONG     1      36288    (8dc0 Hex) 
282 X Resolution         RATIONAL 1      <8>      200 / 1 = 200.000
283 Y Resolution         RATIONAL 1      <16>     200 / 1 = 200.000
285 Page Name            ASCII    14     <24>     BATCH-1867: 1
305 Software             ASCII    58     <38>     
    Kofax customized Multi-Page TIFF Storage Filter v2.01.000
306 Date Time            ASCII    20     <96>     2002:10:14 08:41:43

The bad one:
Page 1 of 1
IFD OFFSET = 24
The number of tags = 13

254 New Subfile Type     LONG     1      0        (0 Hex) 
256 Image Width          LONG     1      1664     (680 Hex) 
257 Image Length         LONG     1      2338     (922 Hex) 
258 Bits Per Sample      SHORT    1      1      
259 Compression          SHORT    1      4      
262 Photometric          SHORT    1      0      
266 Fill Order           SHORT    1      2      
273 Strip Offsets        LONG     1      186      (ba Hex) 
277 Samples Per Pixel    SHORT    1      1      
278 Rows Per Strip       LONG     1      2338     (922 Hex) 
279 Strip Byte Counts    LONG     1      74139    (1219b Hex) 
282 X Resolution         RATIONAL 1      <8>      200 / 1 = 200.000
283 Y Resolution         RATIONAL 1      <16>     200 / 1 = 200.000

I've tried to convert the picture into a tiff Document with the header
information shown for the good image. I have done this with JAI. This was no
problem and the images are viewed, but my next problem is that the PDF File
grows up and is now appr. 3 times bigger then before. When i look into the
pdf i might find the answer in one line in the pdf: "./BitsPerComponent
8./ColorSpace /DeviceRGB". In other documents stands "./BitsPerComponent
1./ColorSpace /DeviceGray".

But how can i tell fop to recognize my converted image as a B/W Image.

Can anyone help?

Regards 
Franz Poppenborg


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org