We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Alignment for Aspose.Pdf.Form

Is there a way to align where the string is placed inside the specified field when using the method FillField from the Aspose.Pdf.Form object?

For example:

Aspose.Pdf.Form myForm = new Aspose.Pdf.Form(inputStream, OutputStream);
myForm.FillField("nameOfField", "stringToBePlacedInField");

By default it is left aligned and I would like it to be centered but can't seem to find a way to do it.

Any help would be appreciated!



Hello Nick,

Thanks for considering Aspose.

Aspose.Pdf.Kit has a class named FormFieldfacade that can be used to record the text alignment attribute of the field. Its Alignment Property can be used to for this purpose. For more information kindly visit FormFieldFacade

Hey thanks a lot I will check it out!