Bug 155142 - FORMCONTROLS: Add form control to prevent scrolling in text boxes
Summary: FORMCONTROLS: Add form control to prevent scrolling in text boxes
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
Depends on:
Blocks: Form-Controls
  Show dependency treegraph
Reported: 2023-05-04 03:17 UTC by Steve
Modified: 2023-05-09 21:17 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

Screenshot showing the Adobe Acrobat 'Scroll long text' option (28.64 KB, image/jpeg)
2023-05-04 03:17 UTC, Steve
Source file with single line textbox (9.24 KB, application/vnd.oasis.opendocument.text)
2023-05-07 12:57 UTC, Steve
Exported pdf before post-processing (1.74 KB, application/pdf)
2023-05-07 12:58 UTC, Steve
pdf after post-processing by unticking Scroll long text (5.91 KB, application/pdf)
2023-05-07 12:59 UTC, Steve

Note You need to log in before you can comment on or make changes to this bug.
Description Steve 2023-05-04 03:17:47 UTC
Created attachment 187076 [details]
Screenshot showing the Adobe Acrobat 'Scroll long text' option

Most of the forms I use are ultimately designed for signing with locked fields and the ability to print the final document with integrity.

The default behavior of both single- and multi-line text boxes is to allow them to scroll once the end is reached. If the form user unwittingly enters too much text, the final printed product will be incomplete as the scrolled text will truncate. Therefore scrolling in text boxes must be disallowed for some forms.

This ability exists in Adobe Acrobat: text box properties, options tab, 'Scroll long text' tickbox. This is ticked by default (screenshot attached). At the moment I need to post-process each PDF form in Acrobat and untick this for all text boxes.

I propose a new field in text box form controls, 'Allow scrolling' with 2 options 'Yes' / 'No'. It could be placed just beneath the 'Text type' option. If no was selected then the exported PDF, when opened in Acrobat, would have the 'Scroll long text' option unticked.

Thanks for your consideration.
Comment 1 Stéphane Guillou (stragu) 2023-05-04 15:17:18 UTC
Thanks Steve.
Could you please provide an example ODT with the form field, and the PDF file after you did the post-processing in Adobe Acrobat?
Much appreciated.
Comment 2 Steve 2023-05-07 12:57:43 UTC
Created attachment 187124 [details]
Source file with single line textbox
Comment 3 Steve 2023-05-07 12:58:20 UTC
Created attachment 187125 [details]
Exported pdf before post-processing
Comment 4 Steve 2023-05-07 12:59:05 UTC
Created attachment 187126 [details]
pdf after post-processing by unticking Scroll long text
Comment 5 Steve 2023-05-07 12:59:18 UTC
Sure no problem. Here is an odt, the exported pdf, and the post-processed pdf after unticking 'Scroll long text' in Acrobat.
Comment 6 QA Administrators 2023-05-08 03:18:17 UTC Comment hidden (obsolete)
Comment 7 Stéphane Guillou (stragu) 2023-05-09 21:17:31 UTC
Thank you for the attachments.

I tested both PDFs in Firefox, Okular and GNOME Document Viewer and could not see a difference in filling the field.
However, using Chromium, I could see the difference: the post-processed PDF does not allow adding more characters than whatever fits in the space allocated.

Marking as new, seems like a sensible enhancement request to me.