I have a problem displaying PNG images in a table. They don't seem to work if there is any text before the table with the image. I have created two minimal samples. In each of them there is a table with just a single row and column and the only cell in it contains a PNG image. If I put a text before the table, no image is drawn in the PDF output. If I put it after the table, the image is drawn correctly.
Actually I found out the only difference which makes it work is at the beginning of the generated PDF files (I was not able to add PDF attachments to the post). In the "correct" file there is a block
Code:
/ExtGState
<<
/GS0 6 0 R
/GS1 10 0 R
>>
In the "incorrect" file there is instead
Code:
/ExtGState
<<
/GS0 6 0 R
/GS1 11 0 R
/GS2 12 0 R
>>
If I replace it with the "correct" block, the image appears in the PDF (no other changes are necessary). So it seems to be a problem with some graphic state. But I am no expert in PDF format, so the true cause might be something else.
EDIT: Attached a zip file with the sample PDF files.