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
  • @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
  • I do not know what AES or DRM is. I also do not know what a yellow duck has to do with this answer. If it is some kind of humor, I really do not get it. Down voting can be done without such paraphernalia – Raoul Kessels Jun 12 at 21:36
  • 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.