LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-08-2017, 02:08 AM   #1
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 813

Rep: Reputation: 116Reputation: 116
Pasting into GIMP


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 -
  1. Open the pdf document with Adobe Reader 9.5.5
  2. left click on any image in the pdf file to select the image
  3. right click to reveal the context menu with just one entry called "Copy Image"
  4. left click on the context menu option "Copy Image"
  5. Open GIMP
  6. 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 -
  1. Open the pdf document with Adobe Reader 9.5.5
  2. left click on any image in the pdf file to select the image
  3. right click to reveal the context menu with just one entry called "Copy Image"
  4. left click on the context menu option "Copy Image"
  5. Open LibreOffice Writer
  6. Use the Menu Option in LibreOffice Edit -> Paste. The image is successfully pasted into the Writer document
  7. Use the Menu Option in LibreOffice Edit -> Copy.
  8. Open GIMP
  9. 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?

Thanks to all
 
Old 08-08-2017, 02:39 AM   #2
trollog
Member
 
Registered: Oct 2014
Posts: 122

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 08-08-2017, 03:03 AM   #3
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 14.2 64 Multi-Lib
Posts: 569

Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by trollog View Post
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 might be wrong this, but I think that's EXACTLY what the world does need .. but hasn't got. There are plenty of editors around that can modify pdf.
 
1 members found this post helpful.
Old 08-08-2017, 04:25 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,921

Rep: Reputation: Disabled
if a command line tool can fit in your workflow, try pdfimages, shipped in the poppler package. man pdfimages will tell you how to use it.
 
Old 08-08-2017, 06:25 AM   #5
trollog
Member
 
Registered: Oct 2014
Posts: 122

Rep: Reputation: Disabled
>>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.
 
1 members found this post helpful.
Old 08-08-2017, 09:40 AM   #6
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143Reputation: 1143
Quote:
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.
 
Old 08-08-2017, 12:47 PM   #7
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Another option/workaround would be to open the pdf directly in GIMP, and import the page containing the image.
 
4 members found this post helpful.
Old 08-08-2017, 03:04 PM   #8
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2 and Slackware64 -current (AKA Slackware64 15)
Posts: 3,768

Rep: Reputation: 2126Reputation: 2126Reputation: 2126Reputation: 2126Reputation: 2126Reputation: 2126Reputation: 2126Reputation: 2126Reputation: 2126Reputation: 2126Reputation: 2126
Quote:
Originally Posted by Diantre View Post
Another option/workaround would be to open the pdf directly in GIMP, and import the page containing the image.
That's what I do.
 
2 members found this post helpful.
Old 08-08-2017, 07:33 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174Reputation: 1174
Quote:
Originally Posted by Richard Cranium View Post
That's what I do.
Me too.
 
1 members found this post helpful.
Old 08-09-2017, 04:57 PM   #10
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 710

Rep: Reputation: 181Reputation: 181
Quote:
Originally Posted by aikempshall View Post
.. 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....

Last edited by brobr; 08-09-2017 at 04:58 PM.
 
Old 08-09-2017, 06:53 PM   #11
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,946

Rep: Reputation: Disabled
I really suggest to use xpdf or mupdf instead of adobe pdf reader... You can also use zathura with either poppler or mupdf as the backend.
 
Old 05-09-2021, 04:20 AM   #12
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 813

Original Poster
Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by brobr View Post
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.

Same problem happens with gimp 2.10.24 in Current
 
Old 05-09-2021, 04:34 AM   #13
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 813

Original Poster
Rep: Reputation: 116Reputation: 116
This post contained inaccurate information, so i've withdrawn it

Last edited by aikempshall; 05-09-2021 at 04:41 AM. Reason: Not true.
 
Old 05-09-2021, 05:29 AM   #14
bitfuzzy
Member
 
Registered: Nov 2003
Posts: 282

Rep: Reputation: 65
Quote:
Originally Posted by Ztcoracat View Post
Me too.
Me as well
 
Old 05-09-2021, 09:12 AM   #15
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 431

Rep: Reputation: 287Reputation: 287Reputation: 287
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GIMP 2.10 Development Continues, GIMP 2.9.4 Lands New Features After 8 Months LXer Syndicated Linux News 0 07-13-2016 04:31 AM
LXer: GIMP Painter And GIMP Paint Studio Transform GIMP Into The Ultimate Painting Tool LXer Syndicated Linux News 0 02-08-2011 05:40 PM
LXer: Gimp Paint Studio(GPS)- A collection of brushes and accompanying tool presets for GIMP LXer Syndicated Linux News 0 02-02-2011 02:13 AM
LXer: Gimp Paint Studio [Gimp Optimized for Drawing and Painting] LXer Syndicated Linux News 0 05-04-2009 01:30 PM
printing on HP PhotoSmart from Gimp 2.2, gimp-print drivers needed? pearman Debian 2 08-05-2005 04:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration