This sample shows how to use PDF images with color-key masks. The code uses Docotic.Pdf library API.
When adding images, you can specify the color of pixels you would like transparent. Use overloads of the PdfDocument.AddImage method with an argument of PdfColor
type for that.