4

I am using MikTex 2.9. I would like my text to be highlighted and I would like a comment to it. But my MWE below doesnot work.PLease help

\documentclass{report}
\usepackage{graphicx}
\usepackage[a3paper,landscape]{geometry}
\usepackage{lastpage}
\usepackage{hyperref,bookmark}
\usepackage[author={Max Schlepzig}]{pdfcomment}
\usepackage[rgb]{xcolor}

\begin{document}

\pdfmarkupcomment[markup=Highlight,color=yellow]{This highlighted Text Has Tool Tip With Hyperlink.}{Highlight}

\end{document}

Output of above code is just plain text enter image description here

1 Answer 1

6

Load lastpage after pdfcomment.

\documentclass{report}
\usepackage{graphicx}
\usepackage[a3paper,landscape]{geometry}
\usepackage[author={Max Schlezpig}]{pdfcomment}
\usepackage[rgb]{xcolor}
\usepackage{lastpage}% 
\usepackage{hyperref,bookmark}

\begin{document}

\pdfmarkupcomment[markup=Highlight,color=yellow]{This highlighted Text Has Tool Tip With Hyperlink.}{Highlight}

\end{document}

enter image description here

1
  • A bit late, but I'm having the same problem with some PDF viewers but not with others, with a minimum working example, not even using lastpage. Different viewers seem to handle comments differently.
    – mfg
    Aug 21, 2020 at 16:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .