Hello,
I am working on an implementation involving the insertion of a signature image into a PDF document using the Gembox.Pdf library. While I’m able to insert the image successfully, I’m encountering an issue when I attempt to retrieve the image after saving and reloading the PDF.
Here’s the code snippet I use to insert the image:
var appearance = signField.Appearance;
appearance.TextPlacement = PdfTextPlacement.IconOnly;
appearance.Icon = PdfImage.Load(new MemoryStream(Image));
appearance.IconScaleCondition = PdfScaleCondition.Always;
appearance.IconScaleProportional = true;
appearance.IconAlignment = new PdfPoint(0.5, 0.5);
The image is inserted as expected, and the resulting PDF visually shows the signature image.
However, after saving the PDF and reloading it using Gembox.Pdf, I find that the appearance.Icon
property is null. I expected this property to contain the inserted PdfImage object.
Is this behavior a known issue, or am I missing something in the process? Could you guide me on how to retrieve the image of the signature field?
Any assistance you can provide would be greatly appreciated. Thank you!
Best regards,
Jindřich