We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Missing a few embedded links in image when pdf is converted to html

I have a multi-page pdf document and am doing pagewise conversion to html. The last page has a few hyperlinked icons. The converted html of the last pdf page doesn’t identify the embedded links.

Here’s the pdf doc-
doc.pdf (874.8 KB)

And here’s the zip of pagewise converted htmls and the conversion artifacts-
3122088768089533861.zip (523.2 KB)

Can you please confirm if this is a known issue, and if there is a workaround. If not, could this be fixed?

Thanks,
NT

@nisargtanna

I have worked with source files shared by you using Aspose.PDF 20.1. For further investigation can you please share source code with us along with version details and environment details so that we may help you out.

@Adnan.Ahmad,

Here’s how I am doing pagewise conversion-

public File[] convertToHtmlPagewise(@NonNull final Path source, @NonNull final Path dest) {
    try {
        final Path htmlFilePath = dest.resolve("./index_page_.html");
        final HtmlSaveOptions options = new HtmlSaveOptions();
        options.setSplitIntoPages(true);
        save(source, htmlFilePath, options);
        return asposeCommonUtil.getHtmlConvertedFiles(dest);
    } catch (Exception e) {
       //handle exception
    }
}
public File[] getHtmlConvertedFiles(@NonNull final Path dest) {
    //this returns a list of html files from dest path
}


Version details- 
    Aspose-pdf-17.8, 
    OpenJDK8 
    OS- Red Hat Enterprise Linux Server release 5.3 and Microsoft Windows 10 Enterprise.
Environment details- 

Thanks,

@nisargtanna,

I have worked with source file and sample code shared by you using Aspose.PDF 20.1 and unable to observe the issue. I have also shared my generated result with you for your kind reference. Can you please check attachment. Also please try to use Aspose.PDF latest version on your end and if there is still an issue than please share feedback with us.html files.zip (39.0 KB)

@Adnan.Ahmad,

Thanks for verifying that it. Are you able to repro this issue in 17.8?

@nisargtanna,

I used 20.1 latest version on my end and unable to observe the issue. Can you please use latest version on your end.

@Adnan.Ahmad,

Can you please confirm if this was a bug in 17.8, and the only solution is to upgrade to 20.1 version?

Thanks,

@nisargtanna

Yes, this will resolve your issue. Please use latest version and share feedback with us.