Returns: An instance of Parser class of the item content.
Example
fromgroupdocs.parserimportParserfromgroupdocs.parser.exceptionsimportUnsupportedDocumentFormatExceptionwithParser("portfolio.pdf")asparser:container=parser.get_container()ifcontainer:foritemincontainer:try:withitem.open_parser()asinner_parser:text=inner_parser.get_text().read_to_end()print(f"{item.file_path}: {textiftextelse'[no text]'}")exceptUnsupportedDocumentFormatException:print(f"{item.file_path}: format is not supported.")```## open_parser {#load_options}Createsa[`Parser`](/parser/python-net/groupdocs.parser/parser/)objectfortheitemcontentwith[`LoadOptions`](/parser/python-net/groupdocs.parser.options/loadoptions/).```pythondefopen_parser(self,load_options):...
Parameter
Type
Description
load_options
LoadOptions
The options to open the item content.
Returns: Parser: An instance of the parser for the item content.