I'm wondering how to open in a new window an attached file when clicking on a bookmark. The code below links a bookmark to an attached file in the PDF file. But upon cliking it, the attached file is opened but also replaces the PDF that called it. What I'm trying to achieve is to open it in a new window.



\section{Hello World}

    /S /GoToE    % action type
    /D [0 /FitB] % view: fit
    /T <<
      /R /C      % relation: child
      /N (t.pdf) % name of embedded file
]{Open embedded file t.pdf}

Code for generating the t.pdf file:

\section{Embedded file}
Page two of embedded file.

1 Answer 1


According to the PDF spec (section, "embedded Go-To actions" allow the boolean key /NewWindow, so adding /NewWindow true to the rawaction dictionary will do what you want.


You must log in to answer this question.

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