I’m using Aspose.PDF to fill and flatten form fields on a PDF. Latest version: 23.1.1
IF Aspose decides the text is too large for the rectangle field it will reduce its size even if the font size is explicitly set.
But I don’t want this, I want it to follow the settings even if the text is truncated like it would if I typed into the form.
I found an old post about this here.
But your library has changed since then. Now instead of setting FitIntoRectangle on the specific Field (sensible), you’ve made it a static field at Aspose.Pdf.Forms.Field.FitIntoRectangle (what?).
I’m using this in a web app, ASP.NET.
Say I’m on the same page and I have 2 buttons for generating docs. Button A sets FitIntoRectangle to false, Button B doesn’t set it at all.
If I click B then A then B… The 1st B will have FitIntoRectangle true (default) and the 2nd B will have FitIntoRectangle false.
And now it’s suddenly changed for other users too… Sometimes. In actuality, testing with 2 Users gives odd results where sometimes the setting seems to switch back to the default of true for some reason.
It’s concerning why this setting is static?
What if I want it set differently on different docs?
Is there a way I can globally set the default to false?(if I set it on startup it just ends up back to true later).