Bug 468093 - Doesn't name files
Summary: Doesn't name files
Status: RESOLVED FIXED
Alias: None
Product: Skanpage
Classification: Applications
Component: general (show other bugs)
Version: 22.12.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Stippich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-02 20:47 UTC by Nathan Price
Modified: 2023-04-18 21:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 23.08
Sentry Crash Report:


Attachments
Export PDF dialogue box (29.49 KB, image/png)
2023-04-06 11:52 UTC, Ben Bonacci
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Price 2023-04-02 20:47:25 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
It scans the document properly, but when I save the document Skanpage ignores the name I put in the dialog and save the document as "New Document" with no extension. I have to manually rename the file and add the extension in Dolphin.

STEPS TO REPRODUCE
1. Scan Document
2.  Input a name, then save as pdf.
3. See the extensionless file in dolphin.

OBSERVED RESULT
extensionless file in dolphin.

EXPECTED RESULT
A pdf name what I specified.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.8-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 16 × 12th Gen Intel® Core™ i5-12500H
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: Dell Inc.
Product Name: XPS 15 9520
KDE Frameworks Version: 5.104
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Ben Bonacci 2023-04-06 11:51:42 UTC
On 22.12.3, I can't reproduce your issue. There is a dialogue box for specifically exporting to a PDF where there's two options to enter a title and a file path. I'm guessing the title option in the dialogue box is related to adding the title to the metadata for the PDF file and the file name has to be specified in the file path, which is likely why the PDF was saved as "New Document.pdf" for the reporter. I couldn't find a detailed answer on what the title option is for exactly in the handbook.
As for the missing extension, I didn't encounter this while testing both file saving dialogue boxes.
Comment 2 Ben Bonacci 2023-04-06 11:52:14 UTC
Created attachment 157896 [details]
Export PDF dialogue box
Comment 3 Ben Bonacci 2023-04-06 11:53:10 UTC
Would you be able to confirm if this was the same dialogue box you used to export the PDF file? Otherwise if it's the other dialogue box it might be a different cause then what I'm predicting.
Comment 4 Nathan Price 2023-04-06 15:45:33 UTC
I did a video capture to show you what I mean
https://nextcloud.gravityfargo.dev/s/Fwtj3ES8xXjTmSq
(Skip to 2:15 to go straight to this issue)

I assumed "Document Title" was the name it would be saved at. I'll put in a feature request when I figure out how to do that haha.

So there are several issues in that video, I open krunner to type annotate what happened. I'll create separate issues later. The file saving is my main issue.

To be more concise:
Saving one scan yields "New Document.pdf"
Saving a new one after deleting the previous scan and rescanning yields "New Document"

Now Okular will open this file, but Obsidian will not unless I manually add the extension. 




As for other issues (outside the scope of this issue)
- Exporting as pdf with OCR enabled but the required packages aren't installed causes a crash (I forgot to disable this twice in the video and caused two crashes)
- I have a mobile scanner (EPSON ES-50) with no multi-document feeder, so I have to click "Scan" twice. Time one it says "Feeder Empty", second time does the scan.


I posted the video from my Nextcloud, I can throw it up on youtube if that's better for you.
Comment 5 Nate Graham 2023-04-18 21:24:36 UTC
Thanks for the screen recording. I can't reproduce the issue with those steps in the current git master version though. So let's call it fixed!