Hi, I am facing an issue while converting a HTML to PDF using GroupDocs conversion library for java, below are more details -
GroupDocs.Conversion version - 22.12.1
JAVA version - 11
HMTL file and stacktrace - GroupDocs HTML-PDF Issue #13396 - FileTransfer.io
Code to convert -
public static void convertHtmlToPdf(String htmlString, String pdfOutputPath) {
File tempFile = null;
try {
// Log a message before conversion
LOG.info("Attempting to convert HTML to PDF");
// Save HTML string to a temporary file
tempFile = File.createTempFile("tempHtml", ".html");
FileUtils.writeStringToFile(tempFile, htmlString, StandardCharsets.UTF_8);
// Initialize converter
try (Converter converter = new Converter(tempFile.getAbsolutePath())) {
// Convert to PDF
converter.convert(pdfOutputPath, new PdfConvertOptions());
// Log a success message after conversion
LOG.info("Successfully converted HTML to PDF");
}
} catch (IOException e) {
// Log error message and full stack of the exception
LOG.error("Failed to convert HTML to PDF - Error: {}", e.getMessage(), e);
}
}
@DineshSolanki
This issue is reproduced at our end. Therefore, we have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): CONVERSIONJAVA-2153
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@atir.tahir , I do have a perpetual fallback license, But haven’t been able to find the credentials to login for paid support, is there any way you can help me towards how can I obtain the account for that license,
sure the link is working now, but can you please tell me if there’s any way for me to connect to someone, who can help me with the account of my license.
The free web app is developed using GroupDocs.Conversion for .NET at the backend.
Rest assure, we are actively looking into your issue, you’ll be notified in case of any update.