Forgot to mention that this patch was created off the 2.0.19 tag of the repository. If I see it correctly it shouldn't be big effort to apply it to trunk. If I can help, let me know.
On Wed, Jun 17 2020, Sebastian Fieber <[email protected]> wrote: > Hey, > > we are using PDFBox for one of our products and have a proposed > improvement for PDFBOX-3812. > > The problem we are facing with the current implementation of > auto-sized multiline text fields is the following: > > 1. If the rectangle of the multiline text field has a reasonable height > for a few lines and only a few characters are put in the text field > the font will get too big, resulting in strange looking input. If > edited aftewards with Adobe Acrobat the font size is adjusted to 12pt > (like the DEFAULT_FONT_SIZE). > > 2. Words are not broken if they are too long to fit in the width of the > textbox. The result is that the part not fitting is cut off. > > The attached patch tries to fix these issues in the following way: > > 1. Use DEFAULT_FONT_SIZE instead of MAX_FONT_SIZE to calculate the > maximum line height for multiline text fields > > 2. Test if a word is longer than the width if it is the only word > present on a line. If yes a similar alorithm to calculate the font > size in 1. is used. > > If there are any problems with the patch, please let me know. -- Mit freundlichen Grüßen Sebastian Fieber Software Entwickler Mentana-Claimsoft GmbH EIN UNTERNEHMEN DER FP-GRUPPE Griesbergstr. 8 · 31162 Bad Salzdetfurth Trebuser Str. 47 · Haus 1 · 15517 Fürstenwalde Tel: +49 (0)5063 277440 · Fax: +49 (0)5063 2774450 E-Mail: [email protected] · De-Mail: [email protected] Web: www.mentana-claimsoft.de · Blog: fp-francotyp.com/blog Service Center De-Mail: 01806/ Mentana (6368262) (0,20 € pro Anruf aus dem deutschen Festnetz, max. 0,60 € pro Anruf aus dem deutschen Mobilfunknetz) Service Center Signaturprodukte: 01806/ Signatur (74462887) (0,20 € pro Anruf aus dem deutschen Festnetz, max. 0,60 € pro Anruf aus dem deutschen Mobilfunknetz) Geschäftsführung Stephan Vanberg, Patricius de Gruyter HRB: 13886 - Amtsgericht Frankfurt/Oder
smime.p7s
Description: S/MIME cryptographic signature
