Hi Team,
Facing following issues with the licensed Aspose.PDF. Using 17.1.0.0 Version.
1. When filling a string “0000” into a PDF field, it is taking as “0”. I need “0000” to be saved.
pdfForm.FillField(“input”, “0000”); // Not working as expected.
2. The input text is getting saved in different formats in the PDF for different types of fields (TextBox, Comb Fields). No Consistency. Is this expected?
3. Following Code is not working. The DecorateField() is not setting the Custom font settings to all the fields.
FormEditor form1 = new FormEditor();
form1.BindPdf(@“input.pdf”);
FormFieldFacade facade = new FormFieldFacade();
form1.Facade = facade;
MemoryStream decoratedStream = new MemoryStream();
facade.CustomFont = “Arial”;
facade.FontSize = 9;
form1.DecorateField(FieldType.Text);
Note: form1.DecorateField(“SampleField”); is working and able to manipulate the fontsize for a particular field. I tried for “All FieldTypes”.
4. There is a multiline-TextField in my PDF template.
i) When a single line is passed, Aspose.PDF is saving it in large font and the text is trying to fit the whole textBox. Tried below code to explicitly turnoff AutoFit. Not worked.
pdfForm.FillField(“Patientdetails.CorrespondenceAddress”, claimFormRequest.CorrespondenceAddress,false);
ii) When the text is multiline, Aspose.PDF is auto-resizing the font and saving it.
I want to reduce the size in first scenario. (If I fix size using Point 3, then auto-resize is not occurring as size is fixed, Which I don’t want)
Please respond asap. Thanks.
Regards,
Raju.