xxxxxxxxxx
import aspose.words as aw
doc = aw.Document("STC_TCET_AnkurKulkarni.pdf")
doc.save("Output.html")
xxxxxxxxxx
htmlOutputOptions = HTMLOutputOptions()
# Set e_reflow_paragraphs content reflow setting
htmlOutputOptions.SetContentReflowSetting(HTMLOutputOptions.e_reflow_paragraphs)
# Optionally set to flow paragraphs across the entire browser window.
htmlOutputOptions.SetNoPageWidth(True)
# Convert PDF document to HTML with reflow paragraphs option turned on
# But requires the PDF2HtmlReflowParagraphsModule
Convert.ToHtml(filename, output_filename, htmlOutputOptions)
Copy