Version: unspecified (using KDE 4.4.5) OS: Linux When filling in forms using Okular, there is no way to change the font size. This is unfortunate because after the text fills up the form, the rest of the text is cut off. Reproducible: Always Steps to Reproduce: 1) Open document 2) Click on "Show Forms" 3) Fill in form Actual Results: There's no way to change the font size and sometimes there isn't enough room to fit all of the text inside the form. Expected Results: There should be a way to change the font size to ensure that your text can fit inside the forms.
I can confirm this problem, I thinks poppler who is to blame since evince does the same thing.
Confirmed under KDE 4.8.1, Okular 0.14.1. The font is too large when I was trying to fill one of my PDF file, which makes it unusable. :(
Created attachment 80625 [details] The example of wrong formatting of form texts Confirming for okular 0.16.1 from KDE 4.10.2. The texts were: 1st line: Text, Speech and Dialogue. Proceedings of the 16th International Conference TSD 2013, Plzen, Czech Republic, September 2013 2nd line: Vaclav Matousek et al 3rd line: University of Vest Bohemia, Univerzitni 8, 30614Plzen
Created attachment 80626 [details] The form filled in the previous example
*** This bug has been confirmed by popular vote. ***
In this bug, the form fields have no font size (size 0) specified, and no prerendered appearance exists for the fields in question. Bug #363768 is related. In Bug #363768, the font size in the prerendered appearance /AP object is not used as a hint for font size selection. Given that solving this bug #246196 would also allow to work around bug #363768, I'm setting #246196 as blocker for #363768.
(In reply to Carl-Daniel Hailfinger from comment #6) > In this bug, the form fields have no font size (size 0) specified, and no > prerendered appearance exists for the fields in question. > > Bug #363768 is related. In Bug #363768, the font size in the prerendered > appearance /AP object is not used as a hint for font size selection. Given > that solving this bug #246196 would also allow to work around bug #363768, > I'm setting #246196 as blocker for #363768. They are related, but you can solve 363768 without 246196. So no blocker, but I can fill the "See also" field.
Working on this... right now I can set a max font size for forms where the font size is not specified. No GUI, and still requires recompilation of libpoppler if you want a different size. Then again, that's probably a lot better than nothing.
Created attachment 101493 [details] Hardcode a reasonable default max font size for form fields if autosize=on This patch solves the immediate problem for me, but obviously hardcoding a max font size of 12 for all form fields with unspecified font size is not optimal for everyone. Options are either a setting per form field, or a global setting. Given that most forms are designed for uniform font size, a global setting is probably sufficient and simplifies the UI. If anyone knows poppler well enough to make this a settable attribute of the document instead of a hardcoded constant in two functions, please tell me.
Please reviewboard.kde.org for patches
Which component?
okular?
Oh that's a patch for poppler, then what about using the poppler bugtracker?
Patch for poppler is now in https://bugs.freedesktop.org/show_bug.cgi?id=60836
Migrated Bug report in poppler: https://gitlab.freedesktop.org/poppler/poppler/issues/284 As far as I can tell and test the bug still exists and is not fixed yet.
*** Bug 372581 has been marked as a duplicate of this bug. ***
*** Bug 420729 has been marked as a duplicate of this bug. ***
So currently there is no way to change form font size in Okular? This truncation makes this feature rather broken.