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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

97776 Jan 6,2011 11:54 AM Jan 9,2011 11:58 PM ASP.NET Web Forms (Classic) 2
loading
Tags: PDF
kim
Asked On January 6, 2011 11:54 AM

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);
}
}


kim
Replied On January 6, 2011 02:25 PM

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

Thanks anyway.


Priyadharshini J [Syncfusion]
Replied On January 9, 2011 11:58 PM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;