Bug 154616 - The name of the PDF file generated by Writer cannot be displayed in some PDF readers
Summary: The name of the PDF file generated by Writer cannot be displayed in some PDF ...
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.5.2.2 release
Hardware: x86-64 (AMD64) other
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-05 08:20 UTC by Rybakov
Modified: 2023-04-20 13:11 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Darstellung des PDF- Dateinamens in verschiedenen PDF Viewer/Reader (160.44 KB, application/x-zip-compressed)
2023-04-05 08:20 UTC, Rybakov
Details
New illustration files (997.79 KB, application/x-zip-compressed)
2023-04-13 16:21 UTC, Rybakov
Details
Screenshot of Evince / GNOME Document Viewer (38.66 KB, image/png)
2023-04-20 13:11 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rybakov 2023-04-05 08:20:34 UTC
Created attachment 186483 [details]
Darstellung des PDF- Dateinamens in verschiedenen PDF Viewer/Reader

Der Name der vom Write exportierten PDF- Datei kann in einigen PDF- Reader nicht dargestellt werden.

In einigen bekannten PDF- Reader erscheint statt des Dateinamens das Text:
"Empfänger / Kurzbezeichnung im Dokumententitel".

So ist es in
 - Adobe Akrobat Reader
 - PDF XChange Viewer
 - PDF XChange Editor

Andere Reader stellen den Dateiname vollständig dar. So ist es in
 - WPS- Office
 - PDF24 Reader

Wenn die ODT- Datei im docx- Format gespeichert wird, und danach mit MS- Word als PDF- Datei generiert wird, wird der Dateiname in allen Reader vollständig dargestellt.
Comment 1 Buovjaga 2023-04-11 11:41:28 UTC
Please attach an example ODT file and translate the summary and description into English.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 2 Rybakov 2023-04-13 16:21:54 UTC
Created attachment 186641 [details]
New illustration files

The komments see in Readme.ODT in the ZIP applikation.
Comment 3 QA Administrators 2023-04-14 03:25:47 UTC Comment hidden (obsolete)
Comment 4 Stéphane Guillou (stragu) 2023-04-20 06:57:25 UTC
---- Description translated by LibreTranslate:

Created attachment 186483 [details]
Presentation of the PDF file name in various PDF viewers/readers

The name of the PDF file exported by the write cannot be displayed in some PDF readers.

In some known PDF readers, the text appears instead of the file name:
"Receiver / short description in the document title".

So it is in
- Adobe Akrobat Reader
- PDF XChange Viewer
- PDF XChange Editor

Other readers represent the file name completely. So it is in
- WPS Office
- PDF24 Reader

If the ODT file is stored in docx format, and then generated with MS Word as a PDF file, the file name is displayed in all readers.

---- Steps copied from attached file:

    1. I use an OTT file as a document template, for example an existing file 
Privat briefvorlage_din_5008.ott (Private letter template_din_5008.ott).
    2. On this basis I write a letter and save it as 20230412 Test 1.odt.
    3. I export this ODT File as 20230412 Test 1.pdf.
    4. I open this PDF- file with one of the PDF readers, such as Adobe Acrobat, PDF-Xchange Viewer or PDF-XChange Editor.
    5. The document appears in the form of an index card (tab) with the name 
Briefvorlage DIN 5008 universal (Letter template DIN 5008 universal).
The PDF file name 20230412 Test 1.pdf was expected. 
    6. If the file 20230412 Test 1.pdf in the WPS Office or in the PDF24 Reader to open, the file name appears correctly (as 20230412 Test 1.pdf) in the tab title.
    7. If the ODT text file is created without using an OTT document template and further exported as PDF file
or
    8. if the ODT text file is saved as a DOCX or as a DOC file and further saved as a PDF file with MS Word
the file name in the tab title will be displayed correctly in all PDF readers.

---- My response:

I believe this is "not a bug". The different PDF readers will display different information in the title bar, some show the file name, others show the document title.
In Writer, the document title is set in: File > Properties > Description, and I can see the title "Briefvorlage DIN 5008 universal" in your attached file "20230412 Test 1.odt". It must come from the document / template you based your document on. You can change that value or remove it entirely if needed.
Hope that explains it! Let us know if I missed something.
Comment 5 Rybakov 2023-04-20 08:06:54 UTC
It's a bug.
After the template ODT file has been saved under a new name and then exported as a PDF file, this new name must appear as the tab heading in all PDF readers without exception.
Comment 6 Buovjaga 2023-04-20 11:18:55 UTC
(In reply to Rybakov from comment #5)
> It's a bug.
> After the template ODT file has been saved under a new name and then
> exported as a PDF file, this new name must appear as the tab heading in all
> PDF readers without exception.

I asked about this in the developer chat and got advice that you should log it as a bug against all those other PDF readers that they should be consistent in their behaviour.
Comment 7 Stéphane Guillou (stragu) 2023-04-20 13:11:31 UTC
Created attachment 186813 [details]
Screenshot of Evince / GNOME Document Viewer

Here's an example of a PDF reader app that shows both the file name and the title.

I didn't notice the bit about difference between different file formats in your report, so I tested with creating from a template, and both saving as ODT or DOCX, then exporting both as PDF. In both cases, the document title is kept from the template, so I can't reproduce your issue when comparing different file types.

If you do not want this title to show, either remove it or update it in LibreOffice in File > Properties > Description > Title.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 61b41646c5a93ca24f2c9f143cdb0da2c9258989
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded