Bug 482224

Summary: Add ability to import PDF document to add a new page into an existing PDF document
Product: [Applications] Skanpage Reporter: Martin Steigerwald <Martin>
Component: generalAssignee: Alexander Stippich <a.stippich>
Status: RESOLVED FIXED    
Severity: wishlist CC: nate
Priority: NOR    
Version First Reported In: 23.08.1   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Martin Steigerwald 2024-03-02 12:23:57 UTC
SUMMARY

Would be nice if I could load a PDF document into Skanpage in order to some more pages to it at a later time.


STEPS TO REPRODUCE
1. Scan a few pages.
2. Save the PDF.
3. Quit Skanpage.
4. Scan another page into the existing document

OBSERVED RESULT

Cannot be done without merging PDFs with another tool or at command line.

EXPECTED RESULT

Load the existing PDF into Skanpage. Scan another page to add it to it. Probably rearrange pages.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Devuan Ceres with self-compiled 5.7.6 kernel.
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10


ADDITIONAL INFORMATION

Bug 482223 "Skanpage does not detect temporarily disconnected scanner without restart" inspired me to add this more generic report about adding a page to an existing document.

I don't expect a full-blown PDF editor within Skanpage, but scanning another page to add it to an existing PDF document would really be nice.
Comment 1 Alexander Stippich 2024-03-03 10:47:04 UTC
This feature has been on the list for a while as I find it quite useful, too.
https://invent.kde.org/utilities/skanpage/-/issues/13

There is a proof-of-concept branch here:
https://invent.kde.org/astippich/skanpage/-/tree/importImage?ref_type=heads
It's not up-to-date and currently has quite a basic interface. PDF gets imported as images, i.e. text will get lost.
Comment 2 Bug Janitor Service 2024-03-29 16:00:05 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/skanpage/-/merge_requests/70
Comment 3 Alexander Stippich 2024-04-13 11:20:11 UTC
Git commit 9d94de32a3a1a9bb9ead8ae8c06743b2052beef7 by Alexander Stippich.
Committed on 13/04/2024 at 10:18.
Pushed by astippich into branch 'master'.

add a simple image and pdf import ability

M  +1    -1    CMakeLists.txt
M  +3    -0    src/CMakeLists.txt
M  +2    -2    src/DocumentSaver.cpp
M  +51   -23   src/FormatModel.cpp
M  +3    -1    src/FormatModel.h
A  +73   -0    src/ImageImport.cpp     [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)]
A  +34   -0    src/ImageImport.h     [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)]
M  +11   -0    src/Skanpage.cpp
M  +2    -0    src/Skanpage.h
M  +29   -5    src/qml/MainWindow.qml

https://invent.kde.org/utilities/skanpage/-/commit/9d94de32a3a1a9bb9ead8ae8c06743b2052beef7
Comment 4 Martin Steigerwald 2024-04-14 08:12:52 UTC
Thank you very much, Alexander!