Hi,
I am using aspose-words-17.3.0-jdk16.jar to create a word/pdf file. When I try to convert an image hyperlink the image disappears and is replaced by a hyperlink text. Please see attached zip for html, word, and pdf. What can I do to fix this issue?
Below is the code to convert to word/pdf:
public void convertToPdf()
{
Document document = new Document(new FileInputStream("aspose.html"));
PdfSaveOptions opts = new PdfSaveOptions();
opts.setExportDocumentStructure(true);
opts.getOutlineOptions().setDefaultBookmarksOutlineLevel(1);
document.updatePageLayout();
document.save("test.pdf", opts);
}
public void convertToWord()
{
Document document = new Document(new FileInputStream("aspose.html"));
document.save("test.docx");
}