LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-15-2009, 10:33 PM   #1
garydale
Member
 
Registered: Feb 2007
Posts: 142

Rep: Reputation: 23
why doesn't copy image work in Adobe Acrobat reader?


This isn't exactly a Linux question, because it also happens with the Windows version, but I've got a pdf file with a number of images in it. When I try to copy the image, it works except the pasted image is just a blank rectangle.

I've tried this with The Gimp on Linux and Windows, Photoshop Elements on Windows, and some other programs. I get similar results from all of them. Sometimes the rectangle is transparent, sometimes black, but never the image I've selected. However the rectangle does appear to be the size of the selected image, so something is being picked up.

Any ideas on what the problem may be? Does PDF have some copy protection function or am I missing something?
 
Old 10-16-2009, 03:55 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
why doesn't copy image work in Adobe Acrobat reader?
Yes, you are correct, the security settings in the document can be used to prevent copying of images (though my observation is that this actually prevents the image being selected at all).

When the document images are not secured, the copying of images works as you would expect (eg, using acroread and copying to gimp).

Another possibility is that you are trying to copy a vector image into a raster program?
 
Old 10-16-2009, 04:35 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
May be just create a "screenshot" of the image ?

ImageMagick provides the command 'import', which
includes a 'cross hair' for precise cut's.

This script will do it :
Code:
#! /bin/bash
 import screen$RANDOM.jpg;
 
 exit 0;
or
Code:
#! /bin/bash
 import screen.jpg; kuickshow screen.jpg;
 
 mv screen.jpg image$RANDOM.jpg
 
 exit 0;
'kuickshow' can be replaced with your favorite image viewer.
.....

Last edited by knudfl; 10-16-2009 at 04:37 AM.
 
Old 10-16-2009, 07:54 AM   #4
garydale
Member
 
Registered: Feb 2007
Posts: 142

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by neonsignal View Post
Yes, you are correct, the security settings in the document can be used to prevent copying of images (though my observation is that this actually prevents the image being selected at all).

When the document images are not secured, the copying of images works as you would expect (eg, using acroread and copying to gimp).

Another possibility is that you are trying to copy a vector image into a raster program?
Unfortunately not. The images are product photos that I need to extract and resize for the company's web site. It should have been a simple select image, copy and create new image from clipboard. For some reason, it's not.

The image is selectable. If I click on it with the select tool active, I get a box drawn around the image with a pale, transparent fill over the image. Right-clicking gives me the option of copying the image. Switching to Gimp and I can create a new image from the clipboard that matches the size of the image I copied.

I can do the same with other PDFs (in this case, created with OpenOffice.org writer) and it works, so I guess there's an issue with this particular PDF. Possibly the person who created it covered the actual image with a transparent image to prevent copying - which he shouldn't have done, the images and the pdf belong to the company - or the tool he used (probably another Adobe product) does something weird.

Thanks.
 
Old 10-16-2009, 08:06 AM   #5
garydale
Member
 
Registered: Feb 2007
Posts: 142

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by knudfl View Post
May be just create a "screenshot" of the image ?

ImageMagick provides the command 'import', which
includes a 'cross hair' for precise cut's.

This script will do it :
Code:
#! /bin/bash
 import screen$RANDOM.jpg;
 
 exit 0;
or
Code:
#! /bin/bash
 import screen.jpg; kuickshow screen.jpg;
 
 mv screen.jpg image$RANDOM.jpg
 
 exit 0;
'kuickshow' can be replaced with your favorite image viewer.
.....
Actually, the simplest way (which most PDF viewers support) is to scale the image so it almost fills the screen (to get the maximum resolution) then use whatever graphic select tool your pdf viewer provides to select the image. After that it's cut and paste.

The problem with both techniques is you're working with a rendering of the image. Since the image in the PDF is likely a reasonably high resolution so it prints well, you may lose some of its pixels (e.g. the embedded image could be 300dpi and 4" tall. That would make it 1200 pixels in that dimension. Your screen may be only 1024 pixels high. So not only do you have to shrink the displayed image from its actual height but the onscreen rendering is doing some interpolation to map the image's pixels to the screen). I prefer starting with the best image quality and cut and paste of screen images doesn't give me that.

It also takes more steps and requires more clean up since it includes text, background colours, etc..
 
Old 10-16-2009, 08:13 AM   #6
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
If the file is not secured, then you may be able to use pdfimages to extract the original (raw) images from the file. It is part of the xpdf package.

Code:
pdfimages -j file.pdf imageprefix
 
Old 10-16-2009, 12:13 PM   #7
garydale
Member
 
Registered: Feb 2007
Posts: 142

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by neonsignal View Post
If the file is not secured, then you may be able to use pdfimages to extract the original (raw) images from the file. It is part of the xpdf package.

Code:
pdfimages -j file.pdf imageprefix
Score another win for Linux! pdfimages extracted 27 images, half of which were inverse silhouettes. It looks like the person who created the PDF used a transparent overlay to create a halo around each product photo. I can't quite figured out how that translated into the fully transparent images I was copying from Reader 9, but I've got the original photos now.

Thanks!
 
  


Reply

Tags
acrobat, adobe, extract, graphic, image, imagemagick, pdf


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
install adobe acrobat reader 7.0 newbie007007 Linux - Software 6 03-20-2007 12:34 PM
Adobe acrobat reader error. Andriy Slackware 7 11-22-2006 09:06 PM
Adobe Acrobat Reader runnerpaul Linux - Newbie 4 08-16-2006 02:44 PM
Adobe Acrobat Reader 7 for Linux available leadazide Linux - Software 32 04-16-2005 06:07 AM
adobe acrobat reader dsp_geek Linux - Software 6 11-03-2004 07:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:28 AM.

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