Arkadi Colson wrote:Does anybody know if it's possible to use tranparent png images with the code below: self.data[x][y] = Paragraph( '<img src="' + filename + '" valign="middle"/>', style=self.style_def)Wouldn't it have been quicker just to try it? Although I don't know the answer, I will point out that transparency has always been a tricky issue with PostScript and, by extension, PDF. Both standards were designed with paper and printing in mind, where transparency does not exist. Most professional print shops will not accept PDF files with embedded transparency, because it's not clear what that means.
I tried it and the result is this:

The black square should be a transparent image and looks like this:

Both are png images.
The first one which is appearing correctly is "PNG image data, 48
x 48, 8-bit/color RGBA, non-interlaced". The black square is "PNG
image data, 48 x 48, 8-bit gray+alpha, non-interlaced".
Any idea why the "gray+alpha" isn't showing up correctly?
Thx!