Problems with HTML to PDF converting

Original Html: (550.1 KB)

Look please my Html example which I try convert to PDF.
This is my code

        protected byte[] ConvertHtmlToPdf(string htmlDocument, string baseUrl)
            MemoryStream stream = new MemoryStream(Encoding.UTF8.GetBytes(htmlDocument));
            var options =
                new HtmlLoadOptions(baseUrl)
                    PageInfo =
                        Height = PageSize.A4.Height,
                        Width = PageSize.A4.Width,
                        Margin =
                            Left = 30,
                            Right = 30,
                            Top = 30,
                            Bottom = 40

            Document pdfDocument = new Document(stream, options);
            TextStamp textStamp = new TextStamp("")
                HorizontalAlignment = HorizontalAlignment.Center,
                VerticalAlignment = VerticalAlignment.Bottom,
                BottomMargin = 10
            foreach (Page page in pdfDocument.Pages)
                textStamp.Value = $"Page {page.Number} of {pdfDocument.Pages.Count}";
            using (var outputStream = new MemoryStream())
                return outputStream.ToArray();

I have very good result with using HiQPDF library. It is absolutely like original Html in brawser.
But with Aspose result is not very good.
Maybe you help me with possible details, maybe I missed something in code.

HiQPdfREsult: HiQPdfResult.png (56.4 KB)
AsposePdfResult: AsposePdfResult.png (77.0 KB)


Thank you for contacting support.

We have been able to notice the difference and a ticket with ID PDFNET-46151 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.

Thank you very much for answer.
Tell me please, how long usually solutions come?


We at Aspose offer different support models. Your issue has been logged under free support model where issues have low priority and are resolved on first come first serve basis. The resolution of the logged issue may take several months depending upon how long is the queue of previously logged issues. Whereas, issues have high priority in paid support model and are dealt with high precedence. Paid support option is recommended for the customers who want their issues to be resolved on urgent basis.

As soon as we have significant updates regarding resolution of your issue, we will surely inform you in this very thread. Please be patient and spare us little time.

But we have license with 1 year support. How better change my request to increase priority?



Please create a topic over Purchase Forum while mentioning your 12 digit order ID. There you can get further details if you are entitled to the updates for 1 year or if you are subscribed to Paid Support. If you are subscribed to Paid Support then you may request over Paid Support Helpdesk to raise the priority of PDFNET-46151.