Error when adding text field on a pdf

Hi,

I get an error when trying to add more than one text field to a specific pdf. When I run the same code with another pdf, everything work as expected.

The error I got is :

class com.aspose.pdf.internal.ms.System.z9: Form field not found : c21

Here is the pdf which lead to the error :
example.pdf (500.4 KB)

Here is the code i run :

public static void main(final String... strings) {
	try {
		final License license = new License();
		license.setLicense(PATH_TO_ASPOSE_LIC);
	} catch (final Exception e) {
	}

	final Document document = new Document("example.pdf");

	final Page firstPage = document.getPages().get_Item(1);
	final Rectangle rect = new Rectangle(100, 250, 300, 300);
	final TextBoxField textField = new TextBoxField(firstPage, rect);
	document.getForm().add(textField);
	textField.setValue("firstField");

	final Rectangle rect2 = new Rectangle(100, 400, 300, 450);
	final TextBoxField textField2 = new TextBoxField(firstPage, rect2);
	document.getForm().add(textField2);
	textField2.setValue("secondField"); // throws System.z9: Form field not found : c21
}

Can you help me on this ?
Thanks,
Paulin Sanselme

@PS-CL,
We managed to replicate the said error in our environment. It has been logged under the ticket ID PDFNET-43165 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates. We are sorry for the inconvenience caused.

Best Regards,
Imran Rafique

Hi,

Any news regarding this bug ?

  • Did you fixed it already ?
  • Do you still plan to fix it ?
  • Do you plan to forget it ?

Thanks,
Paulin

@PS-CL,

The linked ticket ID PDFNET-43165 is pending for the analysis and not resolved yet. Our product team will investigate as per their development schedules. We will let you know once the significant progress has been made in this regard.

Hi,

Still no news regarding this issue ?

Thanks,

@PS-CL

Thanks for your inquiry.

I am afraid that earlier logged issue has not been yet resolved, due to large number of pending issues in the queue. Please note that every reported issue possesses equal significance for us, however reported issues are used to be resolved on first come first serve basis. Moreover, we have recorded your concerns and escalated the issue priority to next level. As soon as we have some news on its resolution, we will let you know. Please spare us little time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as PDFNET-43165) have been fixed in Aspose.PDF for .NET 24.7. This message was posted using Bugs notification tool by asad.ali