SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have an annoying feature in GIMP which I would like to find a solution to.
To copy an image from a pdf using Adobe Reader 9.5.5 and paste it into GIMP. I believe I should be able to do the following -
Open the pdf document with Adobe Reader 9.5.5
left click on any image in the pdf file to select the image
right click to reveal the context menu with just one entry called "Copy Image"
left click on the context menu option "Copy Image"
Open GIMP
Use the Menu Option in GIMP Edit -> Paste
However, when I do that a GIMP message box pops up telling me that "There is no image data in the clipboard to paste."
As a work around to this problem I use LibreOffice as a half way house. I do the following -
Open the pdf document with Adobe Reader 9.5.5
left click on any image in the pdf file to select the image
right click to reveal the context menu with just one entry called "Copy Image"
left click on the context menu option "Copy Image"
Open LibreOffice Writer
Use the Menu Option in LibreOffice Edit -> Paste. The image is successfully pasted into the Writer document
Use the Menu Option in LibreOffice Edit -> Copy.
Open GIMP
Use the Menu Option in GIMP Edit -> Paste. The image is successfully pasted into GIMP
In the above solution I would like to circumvent the LibreOffice step. It would appear from my research that my system may have two clipboard managers which may not be synchronised. In summary I can
Copy image from pdf -> Paste Image into LibreOffice -> Copy Image from LibreOffice -> Paste image into GIMP
but cannot
Copy image from pdf -> Paste image into GIMP
Can anyone shed any light on what's going wrong with my system and how I can fix it?
gpm is the other cut & paste daemon. /etc/rc.d/rc.gpm is the file that starts/stops it.
It should be on almost by default. Hilight and object or text in a document, then middle
mouse click to paste while the thing you want to copy is still hilighted
I mention it by way of information. Gimp uses classic old CTRL+C and CTRL+V for cut and
paste in my experience. You might try zooming the image in the pdf to the size you desire,
and then just use gimp to make a screenshot of the window. File --> Create --> Screenshot.
Crop the extraneous window decorations, and there you are- you image is imported into gimp
and can be pasted as you like. No need for third parties to get involved.
I have no idea what adobe's or pdf's abilties are these days for cut & paste. It wasn't able to
do this last I checked, but I admit, it has been a while since I needed .pdf for much. I've always
found pdf to be rather bizarre, conceptually. A platform for making documents that recipients can't edit.
Just what the world needed.
>>I think that's EXACTLY what the world does need .. but hasn't got. There are plenty of editors around that can modify pdf. <<
Exactly. Pdf just made editing a PITA without really delivering on the unmodifiable part of the concept. Also smells a bit like DRM, to be honest, but that's another story. I stand by my "bizarre" remark.. for several reasons. Missing the target being but one of them.
Can anyone shed any light on what's going wrong with my system and how I can fix it?
If you think you have two clipboard managers running, then that could be the problem. Could be a quirk with Adobe Reader, which hasn't been supported in Linux for years. Could be a clipboard manager config quirk. For example, I recall the Xfce clipboard manager has some kind of config option related to how copy/paste operations function.
As far as work-arounds, I opened a PDF in Atril, which is the default document viewer for the MATE desktop. I was able to "right-click" copy and paste an image directly from Atril into GIMP. Perhaps then try a different document viewer other than Reader?
Another option is LibreOffice has decent support for PDFs. In the process you described, you could eliminate one of the steps by opening the PDF directly in LibreOffice rather than Reader. Select the desired image, copy, and then paste into GIMP. I just tested this with the same PDF.
.. copy an image from a pdf using Adobe Reader 9.5.5 and paste it into GIMP.
I bet the very first copy/paste works and then it doesn't.... unless you restart adobe reader and reload the pdf from scratch for copying the second image.... etc (sigh)
That's the cycle I had to go through for a while until I found ways round adobe reader (and wanted complete x64 and get away from multi-lib): either directly load the pdf-page in inkscape (where I usually use the copied stuff) and isolate the wanted bit and remove everything else. Otherwise use evince as the middleman instead of adobe reader; from there you can also copy images....
I bet the very first copy/paste works and then it doesn't.... unless you restart adobe reader and reload the pdf from scratch for copying the second image.... etc (sigh)
Exactly right that's what happens.
Apologies for resurrecting this old thread which I started back in 2017.
I have gradually migrated from adobe tools to okular. It is a pain to get adobe reader running in Linux but it is possible and I used acroread because i was familiar with Adobe since the '80s. Okular has a quick and simple no-nonsense copy tool that copies either text or graphics to the clipboard and works great with gimp and libreoffice. I dont have okular running in windows so i am forced to use the adobe tools and am well acquainted with the superiority of okular for my use in --current.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.