get_info method
Leave feedback
On this page
Returns metadata about a document (format, page count, title, author, encryption status) without performing a full conversion.
def get_info(cls, source_path):
...
| Parameter | Type | Description |
|---|---|---|
| source_path | str |
The path to the source document. |
Returns: DocumentInfo: A DocumentInfo with the detected format, page count, and other metadata.
| Raises | Description |
|---|---|
ValueError |
When source_path is None or empty. |
NotImplementedError |
When the file format is not supported. |
Returns metadata about a document using the specified load options. Use this overload to supply a password when inspecting an encrypted document.
def get_info(cls, source_path, load_options):
...
| Parameter | Type | Description |
|---|---|---|
| source_path | str |
The path to the source document. |
| load_options | LoadOptions |
Options for loading the document (password, format hint). May be None. |
Returns: DocumentInfo: The detected format, page count, and other metadata.
| Raises | Description |
|---|---|
ValueError |
When source_path is None or empty. |
NotImplementedError |
When the file format is not supported. |
- class
MarkdownConverter
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.