Extracted Field Formatting
Friday, February 12, 2021 at 03:54pmHi,
Regarding using FieldBuilder for text field extraction for the creation of inputs from PDF forms...
DocumentPackage dp = PackageBuilder.NewPackageNamed(packageName)
.WithEmailMessage(emailMsg)
.WithSenderInfo(SenderInfoBuilder.NewSenderInfo(senderEmail))
.WithSigner(SignerBuilder.NewSignerWithEmail(member.EmailAddress)
.WithFirstName(member.FirstName)
.WithLastName(member.LastName)
.WithTitle(member.Title)
.WithCompany(member.Company)
.WithCustomId("Signer1")
)
.WithDocument(DocumentBuilder.NewDocumentNamed(documentName)
.FromStream(new MemoryStream(bytePDF), DocumentType.PDF)
.EnableExtraction()
.WithSignature(SignatureBuilder.SignatureFor(member.EmailAddress)
.WithName("txtSignature")
.WithPositionExtracted()
.WithField(FieldBuilder.SignatureDate()
.WithId("txtSignatureDate")
.WithPositionExtracted()
.WithName("txtSignatureDate")
.WithFontSize(defFontSize)
)
.WithField(FieldBuilder.TextField()
.WithId("txtCompanyName")
.WithPositionExtracted()
.WithName("txtCompanyName")
.WithFontSize(defFontSize)
)
...
...
I am wondering if any of the following are possible:
- Is there a way to right-justify the text field? E.g. In the case of numeric values.
- Is there a way to set a specific font size for all fields within the document, without having to set this individually for each field?
- Is there a way to create a repeated field within the document, so that once one instance is filled by the user the same value is reflected in the other instances? This may be on the same page, or instances on another page (e.g. document header information along the lines of Company Name, Address, etc.)
Thanks
Reply to: Extracted Field Formatting
Friday, February 12, 2021 at 04:27pmFor #2, yes you can specify the font size at package level, so it defaults to all fields
DocumentPackage package = PackageBuilder.NewPackageNamed("Field Font Size - " + System.currentTimeMillis()) …… .WithSettings(DocumentPackageSettingsBuilder.NewDocumentPackageSettings().WithFontSize(14)) .Build();
For #1 and #3, I've seen similar Enhancement Requests asking for "Right-justify for numeric text fields" and "Linked fields allow data to be duplicated across documents", so I am afraid they are temporary not available. But I can definitely vote for these two ERs for your organization if you preferred.
Duo
Reply to: Extracted Field Formatting
Friday, February 12, 2021 at 05:00pmThanks for #2.
For #1 and #3, yes this is something that we would like to see if possible as it would improve our clients' signing experiences.
Thanks