9

When an image is inserted in a pdf with the graphicx package, a right click on the image in the output gives the possibility to copy the image. My question is how can one block this possibility?

I guess there is an option in the graphicx package to do so, but I couldn't find it in the package manual (I find this manual not very helpful, especially for the neophyte).

As requested, here is a Minimal Example (where image is any image .jpg):

\documentclass{article} 
\usepackage{graphicx} 

\begin{document} 

   \begin{center} 
    \includegraphics{image}
   \end{center} 

\end{document}
  • 1
    Please provide a MWE to start with, so that users can start searching a solution (if there is such at all). To which manual do you refer? – user31729 May 26 '14 at 4:40
  • 3
    Just tried with package accsupp and it doesn't work, there is still a "copy" menu (both in Acroread 9 and Evince). I presume it is not not possible. Besides, anyone can grab a screenshot of the image. (This question applies to raster images anyway). – alfC May 26 '14 at 4:48
  • 4
    I think this is a feature of the .pdf file format itself and not directly connected to TeX. Copying content out of the file can be prohibited using pdftk for example, but for the whole file, not for just parts of it. I believe, that it is not possible to select which content might be copyable. – user31729 May 26 '14 at 5:28
  • 1
    If possible you trace the picture to create vector graphics, which cannot be "copied" by just right clicking. They can still be extracted with, e.g. Inkscape. – Henri Menke May 26 '14 at 6:50
  • 1
    Or just taking a snap shot of the screen. – Sveinung May 26 '14 at 10:11
1

If you use the clip=true option, you can still select the image but, when pasted, it will just give a black box.

\documentclass{article} 
\usepackage{graphicx} 

\begin{document} 

   \begin{center} 
     \includegraphics[clip=true]{image.jpg}
   \end{center} 

\end{document}
  • Please make clear that this is (at most) an Adobe-specific solution. It does not prevent me copying the image from Okular, for example. – cfr Jun 10 '14 at 3:15
  • Does not work in any reader I tried security says content copying allowed No black box here from acrobat or any other pdf readers I tried it gives me a very nice yellow duck on a grey background for cut and paste. – KJO Jun 12 at 2:49
  • @KJO it worked five years back, at least in the reader I used at that time, which I am not sure of which one it was. Possibly the readers have changed since then. I am a chemist, so I really do not know. At least it worked for the OP at that time. – Raoul Kessels Jun 12 at 19:31
  • Raoul I appreciate times move on and accept that at the time there may have been different outcome my comment is in hindsight and subject to 5 years of enhancements including breaking AES encryption etc. My point is that currently there is no known way of avoiding PDF image copy other than don't compile as pdf (nor bother with any of its DRM clones) – KJO Jun 12 at 19:38
  • 1
    It was a useful solution for the OP five years back as evidenced by the check mark – Raoul Kessels Jun 13 at 10:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.