Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I was using pdfcomment to generate annotations in PDF files. But when I try to view the output PDF in Evince the annotations appear as a weird symbol that is not clickable:

screenshot

Any suggestions for fixing the problem? I am using Evince 3.4.0 with Poppler 0.18. I tried viewing other PDFs with annotations in Evince and those seem to be fine, so I think it might be a pdfcomment issue.

Here is an example:

\documentclass{article}
\usepackage{pdfcomment}

\begin{document}
\pdfcomment{hello}world                                                                                                                                                                                            
\end{document}

The generated pdf looks just like the screenshot above.

share|improve this question
    
could you provide a MWE for folks to play with? –  cmhughes Aug 3 '12 at 23:46

1 Answer 1

According to the pdfcomment author, this problem is due to Evince not following the PDF Reference on annotations. Evince seems to have a problem with the zero width that pdfcomment specifies for its annotations.

See also bug 685334

A workaround could be to directly use the \pdfannot command. I use this:

\makeatletter
\newcommand{\annotate}[2][]{%
\pdfstringdef\x@title{#1}%
\edef\r{\string\r}%
\pdfstringdef\x@contents{#2}%
\pdfannot
width 2\baselineskip
height 2\baselineskip
depth 0pt
{
/Subtype /Text
/T (\x@title)
/Contents (\x@contents)
}%
}
\makeatother

(copied from here)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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