I want to convert an HTML form to a PDF form using HTML Renderer. I know how to convert an HTML page to PDF using HTML Renderer, but I'm not getting all the pages, it is displaying only first page.
When I open HTML in the browser it is displaying all the content and after transformation to PDF it is showing less content and it's up to only one page.
I have tried and searched for different solutions, but none of them are working for me. Please help me to display all the content in multiple pages.
I have used the following:
PdfDocument pdf2 = PdfGenerator.GeneratePdf(html, PdfSharp.PageSize.Letter);
pdf2.Save(filename);
and tried this
PdfDocument pdf = PdfGenerator.GeneratePdf(htmlContent, PdfSharp.PageSize.A4);
I want to transform XML to PDF and HTML to PDF using either HTML Renderer
or aspose
libraries only.