in reply to Send PDF into browser plug-in
I'm sorry for my question. I found what was problem. Function sendfile() needs only file name as parameter, but old function send_fd needed a file handler.
-- Michael Stepanov