anand m

anand m

  • 1.4k
  • 339
  • 34.9k

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)