Hi,
I noticed an issue with font size in textboxes in Aspose.PDF. I’m using version 24.9 with licence.
In my test file (input.pdf) there are 4 fields. All have font size set to Auto. The only difference between them is the height.
I run the following code:
var doc = new Document(@"D:\input.pdf");
foreach (var field in doc.Form.OfType<TextBoxField>())
{
field.Value = "TestTestTestTestTestTestTestTestTestTestTestTestTest";
}
doc.Save(@"D:\output.pdf");
In the resulting document (output.pdf), for fields with small height, the displayed font size is consistent, both with each other and with expected.pdf. However, for larger height, the font size seems to be proportional to the field height.
When I edit the field value in Acrobat Reader, the displayed font size is the same for all fields.
Could you please advise?
expected.pdf (918.8 KB)
input.pdf (911.8 KB)
output.pdf (911.8 KB)