anand m

anand m

  • 1.4k
  • 346
  • 35.6k

Need to convert HTML file to PDS format

Sep 14 2023 4:44 PM

Hello All,

Can you please help me to convert .HTML page to PDF file using C#.net

And i am using below code for using Aspose.Pdf;

   // Load HTML file
            Aspose.Pdf.Document doc = new Aspose.Pdf.Document("C://document.html", htmloptions);
            // Convert HTML file to PDF
            doc.Save("C:/document.pdf");

 

But Image is missing in PDF file and Aspose.Pdf text is  displaying in red color  and image is  showing in HTML file.

Please suggest how to fix this issue.

 

 

THanks

Anand.

 


Answers (3)