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.

Every form field ends with "-0"

Thread ID:





90265 Sep 23,2009 11:40 AM Sep 24,2009 05:47 AM ASP.NET Web Forms (Classic) 2
Tags: PDF
Steve Wortham
Asked On September 23, 2009 11:40 AM

So I have the following VB.NET code that creates a form field in a PDF:

Dim pdfField As New Pdf.Interactive.PdfTextBoxField(pdfDoc.Pages(iPage), "txt1")
pdfField.Location = New PointF(50, 50)
pdfField.Size = New SizeF(100, 10)

This works great except for one thing. When I open up the PDF in Acrobat and look at the field name I notice that it says "txt1-0". Now I can't figure out where the "-0" is coming from and how to get rid of it.

Steve Wortham
Replied On September 23, 2009 03:03 PM

Ah ha, I just found out what was causing this.

Previously I was using both the PdfLoadedDocument and PdfDocument classes. I was loading the PdfLoadedDocument into the PdfDocument via ImportPages and apparently this process will add the "-0" suffix to the field names.

I found that in my case I can get rid of the PdfDocument object and just use PdfLoadedDocument and that fixed it.

Sri Subhashini M [Syncfusion]
Replied On September 24, 2009 05:47 AM

Hi Steve,

Thank you for your interest in Essential PDF.

I was able to reproduce the issue which you mentioned here. We glad to let you know that the issue has been fixed and it is available with our latest development build.

Could you please download our latest development build from the below location and let me know if you need any information?




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.