i used below dependency in java to convert html file to pdf.
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-imaging</artifactId>
<version>25.5</version>
</depen…...outputPdfPath, baseUri); } } Make sure to replace "path/to/your/input...the conversion again after making these changes. If you continue...