Hello,
How can I change the sample code in Tutorials > Spire.PDF > Spire.PDF-Program-Guide > Security > How-to-add-signature-field-to-PDF.html
to an already existing PDF document?
PdfDocument pdfdoc = new PdfDocument(args[0]); // args[0] is the path+name of the already existing PDF
doesn't work as it crashes with message:
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=SignPDF
StackTrace:
at Add_Signature_Filed_to_PDF.Program.Main(String[] args) in D:\SourceTree\SignPDF\Program.cs:line 21
Thanks,
--
Paulo