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…...Html to pdf conversion - aspose-html Aspose.HTML Product Family...aspose</groupId> <artifactId>aspose-imaging</artifactId> <version>25.5</version>...