Bug 158428 - Fillable PDF Forms in Libreoffice Draw cannot have textboxes that scale their font to fit the textbox
Summary: Fillable PDF Forms in Libreoffice Draw cannot have textboxes that scale their...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
7.6.3.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Form-Controls
  Show dependency treegraph
 
Reported: 2023-11-29 01:57 UTC by ben
Modified: 2024-03-24 14:36 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ben 2023-11-29 01:57:55 UTC
Description:
I am trying to transition from Adobe Acrobat to Libreoffice Draw for making Fillable PDF forms, however draw seems to be lacking a feature.

If I create a text box form control, draw the box, export as a PDF then type a long string of letters, the letters will truncated. This is unacceptable for any form that needs to be printed to paper.

In adobe acrobat, if you set the font size of the text box to 'auto', the text will shrink to fit in the box instead of being truncated.

According to this bug report in mozillas pdf reader https://github.com/mozilla/pdf.js/issues/15605 if the font size of the form is set to zero, then the PDF viewer should fit the text to the bounding box. As far as I am aware, there is no way to do this in draw.

Steps to Reproduce:
1. Goto View -> Toolbars -> Form Controls to enable form controls
2. Click the 'Text Box' control from the form controls
3. Drag to create a text box
4. Export the file as a PDF
5. Open the PDF in a PDF viewer (Such as firefox or chrome)
6. Type a long string of letters that is greater than the length of the text box
6. Deselect the text box


Actual Results:
The text box it cut off

Expected Results:
The text should have been shrunk to fit the text box


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.6.3.2 (X86_64) / LibreOffice Community
Build ID: 29d686fea9f6705b262d369fede658f824154cc0
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-AU (en_AU); UI: en-US
Calc: threaded
Comment 1 Robert Großkopf 2023-12-14 16:34:18 UTC
Min height of fonts could only be set to 2 pt in properties of the textbox. Don't know if this feature will work if there could be set '0'.

Have tested also with Scribus - min height 0,5 pt.

So I don't know any free program for creating PDF-files, which could set 0 here and will work well.
If I open the document from bug report of Mozilla in a local PDF-viewer the viewer will show no content in such a field (viewer Okular for Linux/KDE). Might be because the text will be set to 0. Whit Foxit Reader it will show Text in maximum length.

I will mark this one to NEW. Hope there is someone who could try to set font height to 0 and test if it will work …
Have set the component to LibreOffice, because forms will be used in Writer, Calc, Base, Draw …