Can anyone tell me how to add link or button to the pdf that when user press it it will open a print window?

-
Did you try the hyperref package. I can access the Adobe Acrobat Menus. – Tobi Oct 5 '11 at 9:01
You could probably use Acrobat's JavaScript interface. I had a quick look at the JavaScript documentation for Acrobat and couldn't find a Print method (but it has events related to printing). Be aware that if this is possible, only Acrobat Reader will understand it, and it might require to process the PDF through Acrobat Writer to set the permissions. – ℝaphink Oct 5 '11 at 9:03
@Tobi: This is very interesting indeed. – ℝaphink Oct 5 '11 at 9:06

Based on Tobi's comment, you can use hyperref's \AcrobatMenu macro:

\documentclass{scrbook}

\usepackage{hyperref}
\usepackage{lipsum}

\begin{document}

\lipsum

\end{document}


It even works with other readers such as evince.

-
Thanks for that! I will try if it works. – joanna Oct 5 '11 at 9:16
It works with Skim (Mac) and Mac OS X Preview too but not if PDF is opened in Safari (without Adobe Reader plugin). – Tobi Oct 5 '11 at 9:19
Yes, it works :) thanks a lot for help – joanna Oct 5 '11 at 9:28
And one more question: do you know if i can print just current page ? – joanna Oct 5 '11 at 9:42
@joanna: The \AcrobatMenu macro only launches the menu, it doesn't allow to manipulate what's inside the printing box (which might be different between viewers, even). – ℝaphink Oct 5 '11 at 9:44
show 1 more comment