https://bugs.documentfoundation.org/show_bug.cgi?id=156272
Bug ID: 156272
Summary: PDF Export: Form control for date won't set date
format to default format of Writer.
Product: LibreOffice
Version: 7.5.4.2 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Printing and PDF export
Assignee: [email protected]
Reporter: [email protected]
Created attachment 188350
--> https://bugs.documentfoundation.org/attachment.cgi?id=188350&action=edit
Test export the form to pdf - default format of system isn't exported.
Open the attached Document.
It only contains a date control, which is set to Date Format → Standard
(short).
Export this document to PDF.
Open this exported *.pdf with a simple text editor (used here: kate)
You could find this 2 rows:
/F<</JS(AFDate_FormatEx\("mm/dd/yy"\);)/S/JavaScript>>
/K<</JS(AFDate_KeystrokeEx\("mm/dd/yy"\);)/S/JavaScript>>
Every pdf-viewer, which reads this JavaScript, will only allow to set the
format to "mm/dd/yy". You could test this in Firefox or other viewer, not in
Okular, which doesn't read this rows.
You could also read the language, which is the default for Local Settings:
/Lang(de-DE)
But the format has nothing to do with the local setting. Should be "dd.mm.yy",
if Standard (short) will work right.
It is impossible to get this format when exporting to *.pdf, because it won't
be offered by the data control.
Best solution will be to set the date format to the default format of the
system, if default format has been chosen.
--
You are receiving this mail because:
You are the assignee for the bug.