Convert html to pdf API reference

My requirement is as below.
I have an html file in my local machine and I need to convert it into pdf and download. I have check reference API in here https://reference.aspose.cloud/pdf/#/Convert.

But Can’t find any reference to match my requirement. Is there available API reference for this?

@amnk2023
You can use the following code:

var options = new HtmlLoadOptions();
var doc = new Document("fileName.htm", options);
doc.Save("pdf_fileName.pdf");
1 Like

Thanks. This is the only way to do this or is there other ways to do this. I meant like pdfApi

@amnk2023
This is the simplest and most obvious way.
For some reason it doesn’t fit?

Thanks. My requirement is use pdf API to do this. But we dont have any idea is it better way to do this. If your method is the best one we can choose it

@amnk2023
Yes you should try this variant.