We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

What kind of PDF format should be used in order to use FormFiling

Hi there!


-I did try to scan one document and saved as a PDF file, and it did not work when I tried to create the form from that PDF.

-I also download one PDF from one of the Post and it worked.

What kind of PDF format do I have to use in order to use FormFilling?

Thanks!

~~~~~~~~~~~~~~~~~~~

private void FillForm()
{
if (!string.IsNullOrEmpty(this._pDFPath))
{
PdfLoadedDocument loadedDocument = this.LoadPDFDocument(this._pDFPath);
if (loadedDocument != null)
{
//The code below returns "null" if the loadedPDF is the one I scan
PdfLoadedForm loadedForm = this.LoadForm(loadedDocument);
if (loadedForm != null)
{
int count =0;
foreach (Object obj in loadedForm.Fields)
{
PdfLoadedTextBoxField tbField = obj as PdfLoadedTextBoxField;
if (tbField != null)
{
//PdfLoadedTextBoxField
tbField.Text = "F "+count;
}
count++;
}

//(loadedForm.Fields["f1-1"] as PdfLoadedTextBoxField).Text = "First field";
//(loadedForm.Fields["f1-2"] as PdfLoadedTextBoxField).Text = "Second field";

//(loadedForm.Fields["f1-1"] as PdfLoadedTextBoxField).Text = "Third field";


}
loadedDocument.Save(this._savePDFPath);
loadedDocument.Close(true);
System.Diagnostics.Process.Start(this._savePDFPath);
}
}


2 Replies

KI kim January 6, 2011 07:25 PM UTC

I got it now .. it has to be PDF form.

Thanks anyway.


Priyadharshini J January 10, 2011 04:58 AM UTC

Hi kim,

Thank you for the update.

We are glad to hear that the issue has been solved. Please let us know if you have any queries.

Regards,
Priyadharshini

Loader.
Live Chat Icon For mobile
Up arrow icon