Did it work when you run it from the browser? what browser did you use? I already contacted the author and he gave a suggestion, then i followed it but still it didn't work perfectfully. Well, it can generate the pdf file with no contents, always 0 bytes. Is this something to do with our server configuration?
Comment on Re^6: How to make work HTML::HTMLDoc on browser?
The script works, running it from the command line or browser does not make any difference. Your problem is not with the script or how it is being executed. The problem is with your system, htmldoc or HTML::HTMLDoc.
You could try reinstalling htmldoc and HTML::HTMLDoc or try the same code on a different system. Perhaps try setting up a virtual machine and test the code there. If it works on another system you may be able to compare the two to find the problem.