My program should output a (fairly complex) form to the printer, including several images. Im currently doing this with Delphi (2006) s Printer.Canvas, after choosing a PDF printer (PDF995). It works as a pleasure.
However, Im now faces a problem: this is one partially transparent image that needs to be placed on top of other elements (borders, background, etc.), and parts of this text are still visible through parts of the image.
Doing this on a regular screen Canvasworks fine with regular TBitmaps using the property TransparentColor. However, when I try to do this on a printer, it does not always work; and when I try to do this on a PDF printer, it never works: the background turns black or (the best result so far) turns white, but still overwrites anything underneath.
Ive tried to achieve the same result by inserting a PNG image with alpha transparency (aka translucency) into a Word document, and then sending it to the specified PDF printer. The translucency disappears, but the transparency of the pixels remains. So at least it should be somehow possible.
Does anyone know how?
source
share