|
Foxit PDF SDK
|
Inherits Object.
Public Types | |
| enum | TableFormat { e_TableFormatMarkdown = 0, e_TableFormatHTML = 1 } |
| Enumeration for table output format in Markdown conversion. More... | |
Public Member Functions | |
| PDF2MdSettingData () | |
| Constructor. | |
| PDF2MdSettingData (TableFormat table_format, bool include_header_footer, bool enable_italic, bool enable_bold, bool skip_ocr_pages=false) | |
| Constructor, with parameters. More... | |
| PDF2MdSettingData & | operator= (const PDF2MdSettingData &data) |
| Assign operator. More... | |
| void | Set (TableFormat table_format, bool include_header_footer, bool enable_italic, bool enable_bold, bool skip_ocr_pages=false) |
| Set value. More... | |
Public Attributes | |
| bool | enable_bold |
| Whether to preserve bold formatting from the original PDF. Default: false. More... | |
| bool | enable_italic |
| Whether to preserve italic formatting from the original PDF. Default: true. More... | |
| bool | include_header_footer |
| Whether to include page header/footer (artifact) content. Default: false. More... | |
| bool | skip_ocr_pages |
| Whether to silently skip pages that contain only path/image objects. Default: false. More... | |
| TableFormat | table_format |
| Table output format. Default value: e_TableFormatMarkdown. More... | |
This class represents setting data used for converting PDF documents to Markdown format.
|
inline |
Constructor, with parameters.
| [in] | table_format | Table output format. Default: e_TableFormatMarkdown. |
| [in] | include_header_footer | Whether to include page header/footer content. Default: false. |
| [in] | enable_italic | Whether to apply italic markers in output. Default: true. |
| [in] | enable_bold | Whether to apply bold markers in output. Default: false. |
| [in] | skip_ocr_pages | Whether to silently skip scan-only pages. Default: false. |
|
inline |
Assign operator.
| [in] | data | Another PDF-to-Markdown setting data object, whose value would be assigned to current object. |
|
inline |
Set value.
| [in] | table_format | Table output format. |
| [in] | include_header_footer | Whether to include page header/footer content. |
| [in] | enable_italic | Whether to apply italic markers in output. |
| [in] | enable_bold | Whether to apply bold markers in output. |
| [in] | skip_ocr_pages | Whether to silently skip scan-only pages. |
| bool foxit::addon::conversion::pdf2md::PDF2MdSettingData::enable_bold |
Whether to preserve bold formatting from the original PDF. Default: false.
When true, text that is bold in the PDF will have bold markers in output. When false, bold formatting is stripped.
| bool foxit::addon::conversion::pdf2md::PDF2MdSettingData::enable_italic |
Whether to preserve italic formatting from the original PDF. Default: true.
When true, text that is italic in the PDF will have italic markers in output. When false, italic formatting is stripped.
| bool foxit::addon::conversion::pdf2md::PDF2MdSettingData::include_header_footer |
Whether to include page header/footer (artifact) content. Default: false.
true means to include header/footer text in the output Markdown. false means to skip header/footer text.
| bool foxit::addon::conversion::pdf2md::PDF2MdSettingData::skip_ocr_pages |
Whether to silently skip pages that contain only path/image objects. Default: false.
When false, such scan-only pages cause an error to be thrown. When true, such pages are skipped and conversion continues.
| TableFormat foxit::addon::conversion::pdf2md::PDF2MdSettingData::table_format |
Table output format. Default value: e_TableFormatMarkdown.
Please refer to values starting from PDF2MdSettingData::e_TableFormatMarkdown and this should be one of these values.