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.

Is it possible to have a bookmark with a link to open the attachments pane? If you carefully read hyperref packege you'll see that the \Acrobatmenu alows you to have links that enables you to open and show a lot of menus and options in Adobe Acrobat. But I don't see any attachments pane option.

Is it possible? Is there any workaround or way to achieve this?

I've also looked with javascript but I can't find any info regarding this :(

From this excelent site you can see the available options for \Acrobatmenu:

enter image description here

Thanks for the help

share|improve this question

1 Answer 1

up vote 9 down vote accepted

Officially the PDF format (specification) only supports four named actions: NextPage, PrevPage, FirstPage, LastPage.

It depends on the PDF viewer, which other non-standard actions might be supported.

The JavaScript API reference lists names in the description of method execMenuItem of object app. There the name ShowHideFileAttachment can be found. It does open the attachment tab, if it was closed, and closes it, if it was opened.

Example:

\documentclass{article}
\usepackage{hyperref}
\usepackage{bookmark}
\usepackage{embedfile}
\embedfile{\jobname.tex}
% \hypersetup{pdfpagemode=UseAttachments}
\begin{document}
\Acrobatmenu{ShowHideFileAttachment}{Show/hide file attachments}
\bookmark[ 
  named=ShowHideFileAttachment,
]{Show/hide file attachments}  
\end{document}

An alternative to open the attachment tab is the PageMode setting that is only used, when the document is opened:

\hypersetup{pdfpagemode=UseAttachments}

Combinations with other tabs (bookmarks/thumbs/...) are not defined in the PDF specification.

share|improve this answer
    
It is not possible to use a \Acrobatmenu 'button' from your hyperref package then to open/close the Attachment pane? –  Christian Hupfer May 14 at 18:23
1  
@ChristianHupfer: It's pretty much the same. I have added it to the example. –  Heiko Oberdiek May 14 at 18:30
1  
I have to praise you Heiko!! You always have the (correct) answer! Amazing! You truly are the PDF guru! That worked like a charm! –  Pedro May 14 at 18:33

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.