Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Convert Pdf to Html hangs at specific files

$
0
0
Hi,

I have used Aspose PDF (10.7.0.0) to convert from pdf to html (in this case, it's a infected PDF), and Aspose hang. This attached file is opened by MS Word with no error

Pdf2Html(String in_file, String out_file)
{
       Aspose.Pdf.Document pdfDocument = new Aspose.Pdf.Document(in_file);
                // Instantiate HTML SaveOptions object
                Aspose.Pdf.HtmlSaveOptions htmlOptions = new Aspose.Pdf.HtmlSaveOptions();

                // Specify to split the output into multiple pages
                htmlOptions.SplitIntoPages = true;

                String convertedFile = Path.Combine(out_file, "page.html");

                pdfDocument.Save(convertedFile, htmlOptions); //hang here
}

Thanks,

Viewing all articles
Browse latest Browse all 3131

Trending Articles