Thanks for your inquiry. I am afraid I am unable to download your shared HTML file for testing as it is showing 0 KB size. Please share it again, you can zip the html file or change its extension to html and share here in forum post.
Furthermore, you are using old generator code, it is recommend to use new DOM approach for HTML to PDF conversion, it is more improved and efficient. Please check following documentation link for details and sample code snippet. You can use PageInfo object of HtmlLoadOptions class to set page size and margins.
Thanks for sharing your source document. I have tested the scenario with new DOM approach for HTML to PDF conversion using Aspose.Pdf for .NET 11.0.0 and noticed that the output is not as expected, some unwanted vertical dashed lines are appearing in resultant PDF. So I have logged a ticket PDFNEWNET-39756 in our issue tracking system for further investigation and rectification. We will notify you as soon as it is resolved.
Thanks for your inquiry. It seems you are evaluating Aspose.Pdf for .NET without a license. Please note Aspose.Pdf
evaluation version has two limitations, evaluation watermark and at most
four elements of any collection can be viewed. Please make a request for 30
days temporary license to evaluate our product without
any limitation. Hopefully your issue will be resolved.
Please feel
free to contact us for any further assistance.
Thanks for the acknowledgement. When using the API without license, there is limitation in terms of number of objects that can be processed with API. Should you have any further query, please feel free to contact.