Hello,
Pardon me, I am a newbie.
I am using Aspose to create a pdf file with lots of fields. My problem is that the fields populated with a object is right aligned and needs to be left aligned (which overrides Acrobat field settings?). I found the AlignmentType to make left but I am not sure where to put AlignmentType.Left. Here is the code where the fields get collected. I am assuming it is on the field variable.
public override Dictionary GetDocumentFieldValues(string documentLocation) {
// Base class validates document
base.GetDocumentFieldValues(documentLocation);
// Create Aspose.PDF.Kit PDF Form
Form pdfForm = new Form(documentLocation);
if (pdfForm == null)
return null;
Dictionary fieldValues = new Dictionary();
foreach (string field in pdfForm.FieldNames) {
string value = pdfForm.GetField(field);
fieldValues.Add(field, value);