Bug 406489 - Can not save/export images in pdf file
Summary: Can not save/export images in pdf file
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 20.12.0
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
: 149798 311043 419394 424234 431435 442131 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-04-13 03:59 UTC by widon1104
Modified: 2024-01-04 21:45 UTC (History)
12 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description widon1104 2019-04-13 03:59:21 UTC
SUMMARY
I use okular 1.3.3 read pdf document, the pdf document has some image I want to save. But I don't know how to save these images.
I right click on that image, no 'save as' option to choose.

STEPS TO REPRODUCE
ignore

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2019-04-13 09:18:52 UTC
How is this *major*? Come on don't play with that, only makes you look silly.

You can just use a screenshot tool like anyone would do, if you want to feel like a pro use pdfimages.
Comment 2 Nate Graham 2019-04-14 01:43:33 UTC
As Albert mentions, you can just take a screenshot of the image. That's the easiest way to accomplish what you're looking to do. This doesn't seem like the kind of thing Okular needs to support when it's such a niche use case with an easy alternative.
Comment 3 widon1104 2019-04-14 08:41:27 UTC
Take a screenshot of the image is not a good solution.
If I take a screenshot of the image I will get a bad resolution image and sometimes the image is so big and hard to take a screenshot.
I find the gnome evince have this feature to save the image, so I use evince now.

I hope okular will add this feature to make okular better.
Comment 4 Albert Astals Cid 2019-04-14 10:32:55 UTC
Yes, it's a valid wish.

As point of control kpdf used to have this and i think there's still some code in Okular that pretends to support it, we just never finished that feature.
Comment 5 Nate Graham 2019-04-14 14:20:54 UTC
Oh OK, cool!
Comment 6 Oliver Sander 2019-04-14 15:02:02 UTC
Do you remember where that code is?
Comment 7 Albert Astals Cid 2019-04-14 16:17:35 UTC
(In reply to Oliver Sander from comment #6)
> Do you remember where that code is?

ui/pageview.cpp
            menu.addAction( new OKMenuTitle( &menu, i18n( "Image (%1 by %2 pixels)", selectionRect.width(), selectionRect.height() ) ) );
Comment 8 Oliver Sander 2019-04-16 11:20:56 UTC
But that doesn't save the actual image, but rather its rendering at the current solution, right?
Comment 9 Albert Astals Cid 2019-04-16 17:12:34 UTC
(In reply to Oliver Sander from comment #8)
> But that doesn't save the actual image, but rather its rendering at the
> current solution, right?

Sure, it's not like it works, otherwise there would be no bug ;)

But actually what i meant was

const Okular::ObjectRect * rect = pageItem->page()->objectRect( Okular::ObjectRect::Image, nX, nY, pageItem->uncroppedWidth(), pageItem->uncroppedHeight() );
                        if ( rect )
                        {
                            // handle right click over a image
                        }

It doesn't work because a) we don't handle it and because b) [almost] no generator creates rects of type Okular::ObjectRect::Image
Comment 10 Laura David Hurka 2020-07-15 22:03:54 UTC
*** Bug 424234 has been marked as a duplicate of this bug. ***
Comment 11 Laura David Hurka 2020-07-15 22:03:59 UTC
*** Bug 419394 has been marked as a duplicate of this bug. ***
Comment 12 Laura David Hurka 2020-07-15 22:21:20 UTC
*** Bug 149798 has been marked as a duplicate of this bug. ***
Comment 13 Laura David Hurka 2020-07-15 22:21:27 UTC
*** Bug 311043 has been marked as a duplicate of this bug. ***
Comment 14 Christoph Feck 2021-01-11 15:57:01 UTC
*** Bug 431435 has been marked as a duplicate of this bug. ***
Comment 15 Laura David Hurka 2021-09-09 15:49:32 UTC
*** Bug 442131 has been marked as a duplicate of this bug. ***
Comment 16 Christopher Yeleighton 2022-11-12 15:48:38 UTC
LibreOffice can do this.