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

Free Support Forum - aspose.com

Blank Pdf Pages from html

Using latest library(evaluation version) with dotnet core and getting blank pdf pages from html

public void GeneratePdf() {

using (var memoryStream = await _file.GetPdfFromHtml(Items.Select(x => new PDFHelper.Parameters
                    html = x.html,
                    PdfOrientation = x.Landscape
                }).ToList())) {
                    using (FileStream file = new FileStream(@"C:\pdf\" + fileName, FileMode.OpenOrCreate))


public MemoryStream GetPdfFromHtml(List<PdfItems> items){

Aspose.Pdf.Document doc = new Aspose.Pdf.Document();
var parameters = items[0];
Aspose.Pdf.HtmlLoadOptions htmlLoadOptions = new Aspose.Pdf.HtmlLoadOptions
byte[] byteArray = Encoding.UTF8.GetBytes(parameters.html);
            MemoryStream stream = new MemoryStream(byteArray);
doc = new Aspose.Pdf.Document(stream, htmlLoadOptions);
var bb = new MemoryStream();
            return bb;



Please try to use the API with a free 30-days temporary license and in case you still face any issue, please share your sample HTML with us so that we can test the scenario in our environment and address it accordingly.

Sending the sample codePowerApp.zip (8.4 KB)


We were able to reproduce the issue in our environment while testing the scenario using your sample application. Hence, an issue as PDFNET-49969 has been logged in our issue tracking system for further investigation. We will look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

Some of the inline checkbox styles and our input styles are also not working
input type=“text” style=“height:16px;width:100px; border:none;background-color:aliceblue; border-bottom:1px solid #000; padding-left:5px;”


We have updated the ticket information accordingly and will surely investigate it from this perspective as well. We will let you know once the ticket is resolved.