Make PDF image annotation part of the PDF content

Hello all,

I’m currently working with some existing PDFs and am running into an issue with PDFs where the images are drawn as an annotation (Like a stamp). I do not have any issues when the image is part of the PDF content (such as when the image is drawn using page.Content.DrawImage()). I’m wondering if there’s a way for me to extract the image from the annotation using Gembox so that I can then redraw it as part of the PDF content.

Thanks!

Hi,

Please check the following example: Flatten PDF interactive form fields from C# / VB.NET applications

Instead of iterating over form fields, you should iterate over page annotations.

Regards,
Stipo

Thank you, this is exactly what I was looking for!