I have 2 html fields and I am unsure the height of each one, because I don't know how long the inventor notes will be. It is difficult to give it a specific height due to this and we want it to look nice. If it is shorter than shrink to fit the text size and if it is long and then expand, even if it means creating a new page.
So, is there a way auto adjust the height using CSS or JavaScript so it the field grows based on the number of words in the field. I know this is possible using CSS and JavaScript outside of E2PDF. Please let me know.
Thank you
23 October, 2025 14:09:12
LELF
Topics: 17
Messages: 86
Also, I don't want to auto fit the font, because if the notes are 1000 words then the font will be to small to read. I need the html field to adjust to the text length.
Thank you
23 October, 2025 14:18:42
E2Pdf
Support
Topics: 7
Messages: 3574
Hello,
Unfortunately, this is currently not possible, as all elements are using static and pre-defined positions at the moment.
The only possible approach is to place all content with dynamic sizing inside a single HTML object and use the feature that continues content onto new pages if it overflows.
However, for other elements, they should be placed either before the dynamic HTML block or on separate pages.
Thank you, do you have plans to add this feature in the future?
23 October, 2025 14:29:10
E2Pdf
Support
Topics: 7
Messages: 3574
Yes, we are already working on a feature that will allow all elements to be relative to each other with dynamic sizes. However, due to the complexity of the task, we do not have an ETA yet.
We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according our to our Cookie Policy.