Can you describe a bit more about the problem you are experiencing?
I think your problem could be that the browser pop's up a "Save or Open" dialog box when it receives the PDF?
It could mean that the mime-type in the Content-type in the HTML header is wrong. Check your content type by running the CGI script on the command-line and redirect its output to a temporary file.
I know it, thanks. Problem is in method sendfile(<FILE HANDLER>)( it replaced method send_fd(<FIEL HANDLER>)). This method returns 2 and doesn't send file into browser.