Bug 145284 - MacOS System Dialog's "Print to PDF" includes original filename extension before ".pdf"
Summary: MacOS System Dialog's "Print to PDF" includes original filename extension bef...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.2.2.2 release
Hardware: All macOS (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-23 16:25 UTC by John
Modified: 2023-03-17 17:45 UTC (History)
0 users

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 John 2021-10-23 16:25:45 UTC
Description:
If I print/export an open file, say, "document.otd", to PDF, the dialog autofills the name "document.odt.pdf". Expected behavior is for the extension to be replaced and not left, resulting in "document.pdf".

Steps to Reproduce:
1. Open a document
2. Select Export to PDF menu item
3. See filename in dialog

Actual Results:
filename contains original extension and pdf.

Expected Results:
filename contains only "pdf" extension


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 7.2.2.2 / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 4; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 1 psidiumcode 2021-10-24 15:03:15 UTC
I could not reproduce it in ver:

Version: 7.2.2.2 / LibreOffice Community
Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
CPU threads: 12; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 273a25c796fca9afa0dfadac57dc3f336831221c
CPU threads: 12; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 2 John 2021-10-24 15:27:52 UTC
(In reply to psidiumcode from comment #1)
> I could not reproduce it in ver:
> 
> Version: 7.2.2.2 / LibreOffice Community
> Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56
> CPU threads: 12; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
> Locale: en-GB (en_GB.UTF-8); UI: en-US
> Calc: threaded
> 
> Version: 7.3.0.0.alpha0+ / LibreOffice Community
> Build ID: 273a25c796fca9afa0dfadac57dc3f336831221c
> CPU threads: 12; OS: Mac OS X 10.15.7; UI render: default; VCL: osx
> Locale: en-GB (en_GB.UTF-8); UI: en-US
> Calc: threaded

So you just don’t see the original file extension, but just pdf?

Do you have the system prefs set to show extensions in the finder?
Comment 3 psidiumcode 2021-11-03 19:01:46 UTC
(In reply to John from comment #2)

> So you just don’t see the original file extension, but just pdf?
Yes, the file does not have the original extension, only .pdf.

> Do you have the system prefs set to show extensions in the finder?
Yes, I do have it set to show extensions and also checked the file extension with the Finder’s file info dialog.
Comment 4 John 2021-11-03 19:07:23 UTC
Hmmm, I'm now not getting the first extension with the "Export to PDF..." menu, just when I try to print and then choose "Save as PDF" from the system dialog.
Comment 5 eisa01 2022-02-05 15:52:49 UTC
Do you still have this issue?

I'm not getting any print dialog where I can save as PDF

Version: 7.2.5.2 / LibreOffice Community
Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
CPU threads: 10; OS: Mac OS X 12.2; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 6 John 2022-02-05 23:35:07 UTC
The original bug seems to be gone. That is, if I choose the "export to PDF" functionality via the little PDF button or the menu, the "pdf" extension replaces the file's "odt" extension.

However if I print the file and then choose "print to pdf" via the system dialog, the resulting dialog box has both the "odt" and the "pdf" extensions, as in "filename.odt.pdf". Different apps seem to handle this in different ways. For example, some leave the new pdf "unnamed", but a quick check doesn't find any that leave the original extension on the proposed PDF filename.
Comment 7 QA Administrators 2022-02-06 03:44:42 UTC Comment hidden (obsolete)
Comment 8 eisa01 2023-03-17 17:45:05 UTC
I can't reproduce. Print -> Save as pdf does not include the odt extension

Version: 7.5.1.2 (AARCH64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 10; OS: Mac OS X 13.2.1; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded