Crawler Resistance Email Address
Here are two approaches. In the first, I use the actual @
character, but when I write it out, I overlay it with some really tiny white text. Thus, during the copy/paste of the PDF, you get the extra text as part of the copy:
\documentclass{article}
\usepackage{stackengine}
\usepackage{graphicx}
\usepackage{xcolor}
\def\fauxat{\stackinset{c}{}{c}{}{\color{white}\scalebox{.01}{foobar}}{@}}
\parindent 0pt
\begin{document}
Using the actual symbol, @,\\
mailto:name\fauxat domain.tld\\
in the PDF copy/paste, appears as\\
``mailto:name@foobar domain.tld''
\end{document}
In this second approach, I avoid the use of the @
symbol, but that means that I must create something that looks reasonably like an @
symbol by overlaying an italic a
inside a sans-serif O
. That way, when it is copied from the PDF, there is no @
in the copy.
\documentclass{article}
\usepackage{stackengine}
\usepackage{graphicx}
\def\fauxat{\raisebox{-1.4pt}{\stackinset{c}{-.4pt}{c}{}{%
\scalebox{.92}{\itshape{a}}}{\textsf{O}}}}
\parindent 0pt
\begin{document}
mailto:name\fauxat domain.tld
in the PDF copy/paste, appears as\\
``mailto:nameOa domain.tld``
\end{document}
If you want to include the email address as an image but don't want to loose quality, why not use a PostScript image? If Adobe Illustrator is available to you, it's easy to convert any font in a PDF to a vector path. I'm sure there are open source tools that can do the same.
- Create a New Illustrator Document
- File > Place... > Select the PDF with your CV
- Object > Flatten Transparency... > check 'Convert All Text to Outlines' > OK
- Delete everything except your email address
- Adjust the Artboard and Export as PDF
This export can replace the email address in your CV. It can't be selected, and its quality is as a good as any text.
\documentclass{article}
\usepackage{graphicx}
\begin{document}
This is my CV. You can reach me at \smash{\raisebox{-2pt}{\includegraphics{email}}} if you like.
\end{document}
Update:
Several free tools can vectorize PDFs. Some tools automatically replace unknown embedded fonts with standard fonts. These shouldn't be used. Inkscape is still among them unfortunately (see this bug report from 2009).
The Wikipedia Graphics Lab pages mention a few other tools: PDF2SVG or online service misc2svg. I tried misc2svg, it worked fine. The SVG output can be cropped and converted to a PDF in Inkscape. You might even be able to convert the SVG to TikZ/PGF paths that can be included in LaTeX source code (using e.g. the inkscape2tikz extension).