I extracted the IDAT chunk of the PNG and added to the object stream and used the "transparent color" (which I obtained with FreeImage) in the /Mask entry. My PDF image object: 6 0 obj << /Type /XObject /Subtype /Image /Name /Im1 /Width 60 /Height 23 /BitsPerComponent 8 /Length 484 /ColorSpace /DeviceRGB /Filter /FlateDecode /Mask [0 0 0 0 0 0] >> stream % IDAT CHUNK % endstream endobj I also tried adding the tRNS chunk to the stream of a XObject and using SMask but that didn't work.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)