LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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: 900

Rep: Reputation: 153Reputation: 153
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: 151

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 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299
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-15.0
Posts: 11,055

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: 151

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: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
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: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
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: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
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: 973

Rep: Reputation: 238Reputation: 238Reputation: 238
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,950

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: 900

Original Poster
Rep: Reputation: 153Reputation: 153
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: 900

Original Poster
Rep: Reputation: 153Reputation: 153
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
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
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: 663

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
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



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 09:53 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