Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Wed Jul 22, 2015 5:16 pm

Hi,

I'm trying to remove / delete a PDFSignatureField. Is this possible?

Thanks,

Grant

grantsss
 
Posts: 8
Joined: Mon Apr 13, 2015 8:43 pm

Thu Jul 23, 2015 2:51 am

Hello,

Thanks for your inquiry.
It's possible. And here is the code for your reference.
Code: Select all
 PdfDocument pdf = new PdfDocument("5437test.pdf");
            PdfFormWidget widgets = pdf.Form as PdfFormWidget;

            for (int i = 0; i < widgets.FieldsWidget.List.Count; i++)
            {
                PdfFieldWidget widget = widgets.FieldsWidget.List[i] as PdfFieldWidget;
                if (widget is PdfSignatureFieldWidget)
                {
                    widgets.FieldsWidget.RemoveAt(i);
                }
            }
            pdf.SaveToFile("RemoveSignatureField.pdf");


Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Fri Jul 24, 2015 6:33 am

Hello,

Have you tried the code?
Has your issue been resolved?
Thanks for your feedback.

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Fri Jul 24, 2015 7:02 pm

Hi Sweety,

The code works perfectly! Thank-you so much for that.

Also, do you have some code that'll create a PDFImage in a PDF Form, set the image, image size and image location for the newly created PDFImage?

Thanks,

Grant

grantsss
 
Posts: 8
Joined: Mon Apr 13, 2015 8:43 pm

Mon Jul 27, 2015 8:12 am

Hello,

Thanks for your reply.
There is a tutorial in our website.
http://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/PDF-Image-Draw-PDF-Image-in-C-VB.NET.html
Is this what you need? If not, please tell us your requirement in detail.

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Fri Jul 31, 2015 9:54 am

Hello,

Has your issue been resolved?
Thanks for your feedback.

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Fri Jul 31, 2015 9:57 am

Hello,

Have you tried the code?
Has your issue been resolved?
Thanks for your feedback.

Best Regards,
Sweety

E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Return to Spire.PDF

cron