parse_by_template method
Contents
[
Hide
]
parse_by_template
Parses the document by the user-generated template.
Returns
An instance of DocumentData class that contains the extracted data;
null if parsing by template isn’t supported.
def parse_by_template(self, template):
...
| Parameter | Type | Description |
|---|---|---|
| template | groupdocs.parser.templates.Template | The user-generated template. |
parse_by_template
Parses the document by the user-generated template using customization options.
Returns
An instance of DocumentData class that contains the extracted data;
null if parsing by template isn’t supported.
def parse_by_template(self, template, options):
...
| Parameter | Type | Description |
|---|---|---|
| template | groupdocs.parser.templates.Template | The user-generated template. |
| options | groupdocs.parser.options.ParseByTemplateOptions | The customization options. |
parse_by_template
Selects the most suitable template from the provided collection and then parses the document against the selected template.
Returns
An instance of DocumentData class that contains the extracted data;
null if parsing by template isn’t supported.
def parse_by_template(self, template_collection, options):
...
| Parameter | Type | Description |
|---|---|---|
| template_collection | groupdocs.parser.templates.TemplateCollection | The template collection. |
| options | groupdocs.parser.options.ParseByTemplateOptions | The customization options. |
See Also
- module
groupdocs.parser - class
DocumentData - class
Parser