I'am sorry about my english.
1. I have page login.html
2. I have page templet.html
3. I have PHP script pdfdoc.php
To read templet.html I need to login at login.html.
In pdfdoc.php
PHP Code:
$myurl =curPageURL();
passthru("htmldoc -t pdf --quiet --webpage $myurl");
Instend getting template.html I get login.html. To do it right I need to provide login and password.
Of course everything is simplified. I can't explaine it straighter.