We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Web Page to PDF generate zero kb file

Hi Aspose,

When I try to convert attached HTML file to PDF , it doesn’t show any error but generate only zero kilobyte file and cannot open.What is the root cause of this?
My code below.

Aspose.Pdf.Generator.Pdf pdf= new Aspose.Pdf.Generator.Pdf();
string ReadHTML = File.ReadAllText(html);
return “success”;


Hi there,

Thanks for your inquiry. I’m afraid you missed the attachment. Can you please share it again? So we will test the scenario at our end and will provide you more information accordingly.

Sorry for the inconvenience faced.

Best Regards,

Hi sorry ,

file attached.change file extension into html as system does not allow to upload html file.


Hi there

Sorry for the inconvenience faced. While using the latest version of Aspose.Pdf for .NET 8.1.0, I've managed to reproduce this issue on my side and logged the issue in our bug tracking system as PDFNEWNET-35449 for further investigation and resolution. I've also linked your request to this issue and you will be notified via this thread as soon as it is resolved.

Please feel free to contact us for any further assistance.

<span style=“font-size:10.0pt;line-height:115%;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:“Times New Roman”;mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA”>Best Regards,