Bug 507752 - Only PDF, not PNG !
Summary: Only PDF, not PNG !
Status: REPORTED
Alias: None
Product: Skanpage
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.04.3
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Stippich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-01 16:15 UTC by nicolas
Modified: 2026-01-19 15:17 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nicolas 2025-08-01 16:15:50 UTC
SUMMARY


STEPS TO REPRODUCE
1. Scan
2. "Tout enregistrer"
3. Choisir "png" (ou tout autre format) : seul un PDF est généré

OBSERVED RESULT
Un PDF est généré

EXPECTED RESULT
Un PNG ou tout autre format demandé

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Linux Mint 22.1
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 MathieuM 2025-08-01 20:36:49 UTC
Hi, please remember to write your bug report in english :)
If someone can test this, I do not have access to a scanner right now.
Here's a translated version:

STEPS TO REPRODUCE
1. Scan
2. "Save All"
3. Chose "png" (or any other format) : only a PDF is generated

OBSERVED RESULT
A PDF is generated

EXPECTED RESULT
A PNG or other asked format is generated

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux Mint 22.1
Comment 2 Nicola 2026-01-19 15:17:48 UTC
I tried to reproduce this but I failed.
The version of skanpage used by Linux Mint 22.1 looks like to be "23.08.5-ubuntu4".

I first tried to install linux mint on a virtual machine but failed to make it detect my network scanner.

I then built the tag 23.08 with kde-builder and (after commenting out some QML code throwing an error about missing dependencies) tried to reproduce the error. Unlike the current version, here the "Save All" button effectively opens the FileDialog. Selecting different formats saves in the expected format. I tried playing with the file extension and the format but it always saved in the expected format.

The only way I found to obtain a PDF even if selecting the PNG format is this:
1. remove check to "Automatically select filename extension"
2. select file type PNG
3. type a file name without extension
In this case the program saves a PDF with a filename without extension. This happens because the code uses only the filename suffix to determine the format and falls back to PDF when the suffix is missing.
I do not see why a user should behave this way, I doubt this is related to this bug.

At this point I finished my ideas, anyone using an old linux mint? :)