Bug 148706 - Values of numeric form fields missing in PDF export
Summary: Values of numeric form fields missing in PDF export
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
6.1 all versions
Hardware: All All
: medium normal
Assignee: Xisco Faulí
URL:
Whiteboard: target:7.4.0 target:7.3.4
Keywords: dataLoss
Depends on:
Blocks: PDF-Export Form-Controls
  Show dependency treegraph
 
Reported: 2022-04-21 09:03 UTC by Michael Weghorn
Modified: 2022-05-17 03:25 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample document (12.53 KB, application/vnd.oasis.opendocument.text)
2022-04-21 09:03 UTC, Michael Weghorn
Details
Result of PDF export with missing values for numerical fields (26.39 KB, application/pdf)
2022-04-21 09:04 UTC, Michael Weghorn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weghorn 2022-04-21 09:03:51 UTC
Created attachment 179703 [details]
Sample document

Steps to reproduce:

1) open attached document "form_sample.odt" in Writer
2) export to PDF
3) open the resulting PDF document
4) check values in the numerical fields (lines starting with "Some amount" and "Another amount")

Actual result:
The fields are empty

Expected result:
The values of the form fields from the Writer doc should be present in the PDF export as well.

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: d81c26a1b9220c176f2d7162ac3b01983d6c8e4f
CPU threads: 12; OS: Linux 5.16; UI render: default; VCL: gtk3
Locale: en-US (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 1 Michael Weghorn 2022-04-21 09:04:23 UTC
Created attachment 179704 [details]
Result of PDF export with missing values for numerical fields
Comment 2 Xisco Faulí 2022-05-10 10:01:52 UTC
Reproduced in

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 8189d815641c583b5506d482f0b4f1ab47924f6a
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 3 Xisco Faulí 2022-05-10 10:02:53 UTC
Also reproduced in

Version: 6.4.0.0.alpha1+
Build ID: 9bc848cf0d301aa57eabcffa101a1cf87bad6470
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3; 
Locale: es-ES (es_ES.UTF-8); UI-Language: en-US
Calc: threaded
Comment 4 Xisco Faulí 2022-05-10 10:05:11 UTC
and

Version: 6.0.0.0.alpha1+
Build ID: 6eeac3539ea4cac32d126c5e24141f262eb5a4d9
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3; 
Locale: es-ES (es_ES.UTF-8); Calc: group threaded
Comment 5 Xisco Faulí 2022-05-12 11:19:47 UTC
I think I know how to fix it
Comment 6 Xisco Faulí 2022-05-12 19:17:58 UTC
Patch in gerrit: https://gerrit.libreoffice.org/c/core/+/134240
Comment 7 Commit Notification 2022-05-13 08:41:12 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/3bd7111fe29ce19a007915af87f1f9269d27d9ff

tdf#148706: map value prop in numericfield to text

It will be available in 7.4.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Xisco Faulí 2022-05-13 08:42:29 UTC
The patch just focuses on exporting the value to pdf. The next step would be to also export the format ( e.g number, date ) but that's another issue.
Closing this one
Comment 9 Michael Weghorn 2022-05-16 13:41:07 UTC
@Xisco: Thanks a lot for fixing this!

Fix verified with

Version: 7.4.0.0.alpha1+ / LibreOffice Community
Build ID: fc2716740bd513154ae4ab5404d9c575678172e0
CPU threads: 12; OS: Linux 5.17; UI render: default; VCL: kf5 (cairo+xcb)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

(In reply to Xisco Faulí from comment #8)
> The patch just focuses on exporting the value to pdf. The next step would be
> to also export the format ( e.g number, date ) but that's another issue.

There's already tdf#105972 for the format not being exported.
Comment 10 Commit Notification 2022-05-17 03:25:01 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "libreoffice-7-3":

https://git.libreoffice.org/core/commit/c5b381b91494057a293f6cb7f1d9798fb40ebea0

tdf#148706: map value prop in numericfield to text

It will be available in 7.3.4.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.