Hi All,
I am writing an image as inline in the PDF file but the output is blank. I wrote other elements like text, lines and rectangles and they seem to output fine. I have attached the PDF file for your reference. Below is the code for the PDF file. Any pointer would be of great help. And I have to use inline image, using XObject isnt feasible in my case.
%PDF-1. 4
1 0 obj
<< /Type /Catalog
/Outlines 2 0 R
/Pages 3 0 R
>>
endobj
2 0 obj
<< /Type /Outlines
/Count 0
>>
endobj
3 0 obj
<< /Type /Pages
/Kids [ 4 0 R ]
/Count 1
>>
endobj
4 0 obj
<< /Type /Page
/Parent 3 0 R
/MediaBox [ 0 0 612 792 ]
/Contents 5 0 R
/Resources << /ProcSet 6 0 R >>
>>
endobj
5 0 obj
<< /Length 883 >>
stream
%write text with size 14 helvetica font
BT
/F1 14 Tf
145.417 347.529 Td
( This is text output ) Tj
ET
%draw line horizontal - with width 1
0.5 w
360 648 m
144 648 l
S
%draw line vertical- with width 1
0.5 w
432 648 m
432 504 l
S
%draw rectangle - with width 1
0.5 w
144 432 216 72 re
S
endstream
endobj
6 0 obj
[ /PDF ]
endobj
q
100 0 0 50 150 600 cm
BI
/Width 5
/Height 5
/BitsPerComponent 8
/ColorSpace /DeviceGray
/Filter /ASCIIHexDecode
ID
0000000000
FFFFFFFFFF
0000000000
FFFFFFFFFF
0000000000
EI
Q
xref
0 7
0000000000 65535 f
0000000009 00000 n
0000000074 00000 n
0000000120 00000 n
0000000179 00000 n
0000000300 00000 n
0000001532 00000 n
trailer
<< /Size 7
/Root 1 0 R
>>
startxref
1556
%%EOF