📜  pdf 到 html python - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:25.143000             🧑  作者: Mango

代码示例1
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