Hi, I need to find a way to add a translucent JPEG image to a PDF. Basically, the image has to be drawn semi-transparently on top of whatever is "under" it. I tried to convert it to PNG, to get alpha channel support, but the resulting PDF becomes too large for this to be a satisfying solution. I know that PDF >= 1.4 supports something like this feature. I was thinking that, maybe, I could load the JPEG image in a PdfImage object and use an equally sized soft mask filled with the alpha value I want, but I don't know if this is the best solution and I cannot even figure out how to add a PdfImage object to a page and how to position it. So far, I've used only PdfSharp's high-level functions.
I'm using the GDI+ build of PdfSharp 1.30.
Could someone help me? Thanks in advance.
|