Apologies! Currently using the 1.50.4000-Beta3B NuGet Package. Yes it happens with any PDF that has forms. Any text or images present in the PDF are copied over fine but the Forms seem to disappear. I can get around it by simply loading the original PDF in, filling the forms and then saving it as a different name and closing the original PDF again.
I have another issue that I am currently stuck with. There are some forms that are present in the PDF that I'd like to replace with an image. I understand that I can use the code below to draw an image at an exact position, but I am unaware of how to get the exact position of where a specific Form element is located.
Code:
XGraphics gfx = XGraphics.FromPdfPage(page);
XImage image = XImage.FromFile(imagepath);
gfx.DrawImage(image, x, y, width, height);
I am also unsure of how to get the specific page that the Form element is on so that I can pass it to the FromPdfPage() function. Can you help with either of these?
Thanks, Conor