Quantcast
Channel: Adobe Community : Popular Discussions - PDF Language and Specifications
Viewing all articles
Browse latest Browse all 46145

Not enough bytes in image stream

$
0
0

Hi

 

I'm developing a program that reads/modifies/saves PDF files. I found a strange imagestream in the PDFReference Document:

 

 

 

2385 0 obj

<</Length 255/Filter /FlateDecode/Width 155/Height 76/BitsPerComponent 8/ColorSpace 36619 0 R/Type /XObject/Subtype /Image>>

stream

[Binary Data]

 

 

endstream

endobj

 

 

 

36619 0 obj

[/Indexed /DeviceCMYK 153 2378 0 R]

endobj

 

 

 

2378 0 obj

<</Length 264/Filter/FlateDecode>>

stream

[Binary Data]

 

endstream

endobj

 

 

The decoded stream of object 2385 is 5080 bytes long.

The decodes stream of object 2378 is 616 bytes long.

 

 

 

Strange:

Height/Width*BitsPerComponent = 76*155*8 = 94240 bits = 11780 bytes!

The length of the stream is only 5080 bytes long.

 

Aren´t there to less bytes for the image?

Or did i misunderstand something?

 

PDF viewers can display this PDF correctly, so there must be something I dont know...

What is the secret?

 

Thanks for your help!


Viewing all articles
Browse latest Browse all 46145

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>