I have an image object listed below. It is a 3 X 3 bitmap with all pixels black except the top left is red, middle is green, and bottom right is blue.
7 0 obj
<<
/Type /XObject
/Subtype /Image
/ColorSpace /DeviceRGB
/Height 3
/Width 3
/BitsPerComponent 8
/Smask 6 0 R
/Length 55
/Filter /ASCIIHexDecode
>>
stream
ff000000000000000000000000ff000000000000000000000000ff>
endstream
endobj
It refers to an Smask listed below:
6 0 obj
<<
/Type /XObject
/Subtype /Image
/ColorSpace /DeviceGray
/Height 3
/Width 3
/BitsPerComponent 1
/Length 19
>>
stream
0 0 0 1 1 1 0 0 0 >
endstream
endobj
The result shows no transparency, it is all black with the red, green, blue diagonals. Is there something obvious I am not doing right? I am really new to this. I started a couple of weeks ago by reading "PDF Explained" but that doesn't handle Smask, so I am reading the Adobe documentation.
The entire file, if needed is shown below:
%PDF-1.7
3 0 obj
<</Type /Page
/Parent 1 0 R
/Resources 2 0 R
/Contents 4 0 R>>
endobj
4 0 obj
<</Length 142>>
stream
- 1.0 w
BT /F1 10.00 Tf ET
BT 20.00 470.00 Td (Testing a bitmap image 2) Tj ET
q
1 0 0 1 50.000 50.000 cm
- 10.000 0 0 10.000 0 0 cm
/image0 Do
Q
endstream
endobj
1 0 obj
<</Type /Pages
/Kids [3 0 R ]
/Count 1
/MediaBox [0 0 500.00 500.00]
>>
endobj
5 0 obj
<</Type /Font
/BaseFont /Helvetica
/Subtype /Type1
/Encoding /WinAnsiEncoding
>>
endobj
6 0 obj
<<
/Type /XObject
/Subtype /Image
/ColorSpace /DeviceGray
/Height 3
/Width 3
/BitsPerComponent 1
/Length 19
>>
stream
0 0 0 1 1 1 0 0 0 >
endstream
endobj
7 0 obj
<<
/Type /XObject
/Subtype /Image
/ColorSpace /DeviceRGB
/Height 3
/Width 3
/BitsPerComponent 8
/Smask 6 0 R
/Length 55
/Filter /ASCIIHexDecode
>>
stream
ff000000000000000000000000ff000000000000000000000000ff>
endstream
endobj
2 0 obj
<<
/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
/Font <<
/F1 5 0 R
>>
/XObject <<
/image0 7 0 R
>>
/ExtGState <<
/gs0 << /ca 1.000 >>
/gs1 << /CA 1.000 >>
>>
/Shading <<
>>
>>
endobj
8 0 obj
<<
/Producer (rffPdf 1)
/CreationDate (D:20130530144053)
>>
endobj
9 0 obj
<<
/Type /Catalog
/Pages 1 0 R
/OpenAction [3 0 R /FitH null]
/PageLayout /OneColumn
>>
endobj
xref
0 10
0000000000 65535 f
0000000278 00000 n
0000000859 00000 n
0000000009 00000 n
0000000087 00000 n
0000000365 00000 n
0000000461 00000 n
0000000624 00000 n
0000001051 00000 n
0000001126 00000 n
trailer
<<
/Size 10
/Root 9 0 R
/Info 8 0 R
>>
startxref
1229
%%EOF