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

Insert simple bmp image

$
0
0

Hello,

I'm trying to insert a simple bitmap image (150px * 30px) with all pixels red.

 

To represent the image I use in the following objs:

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

7 0 obj
<<
/Type /XObject
/Subtype /Image
/Name /Img1
/Width 150
/Height 30
/BitsPerComponent 8
/ColorSpace /DeviceRGB
/Filter /ASCIIHexDecode
/Length 13500
>>
stream
FF0000....FF0000
endstream
endobj

8 0 obj
<< /Length 31 >>
stream
q
1 0 0 1 50 700 cm

 

/Img1 Do
Q
endstream
endobj

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

 

...where 'FF0000....FF0000' is the string FF0000 printed 4500 (150*30) time.

 

I see in the pdf  a little red square.
What's wrong?
Thank you in advance.

I attach the pdf file in question.

 

Marra Domenico


Viewing all articles
Browse latest Browse all 46145

Trending Articles



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