# Options and Configuration Control parsing behavior with options from groupdocs.parser.options in GroupDocs.Parser for Python via .NET. Most parsing scenarios work with defaults, but `groupdocs.parser.options` exposes classes to control how documents are opened and processed. Use these options to handle passwords, guide format detection, or tune search and text extraction modes. ## Apply load options {{< tabs "example-1" >}} {{< tab "Python" >}} ```python from groupdocs.parser import Parser from groupdocs.parser.options import LoadOptions # Pass a password and open from a stream with open("./protected.pdf", "rb") as stream: options = LoadOptions("123456") with Parser(stream, options) as parser: reader = parser.get_text() print(reader.read_to_end() if reader is not None else "Text extraction isn't supported.") ``` {{< /tab >}} {{< tab "protected.pdf" >}} {{< tab-text >}} The following sample file is used in this example: [protected.pdf](https://docs.groupdocs.com/parser/python-net/_sample_files/developer-guide/advanced-usage/options/protected.pdf) {{< /tab-text >}} {{< /tab >}} {{< tab "apply-load-options.txt" >}} ```text Payroll summary - December 2025 Confidential: prepared by Finance for the directors of Harbor Lane Provisions. Department Headcount Gross pay Employer costs Warehouse 21 $71,400 $13,900 Drivers 9 $29,700 $5,800 Sales and customer service 7 $27,300 $5,300 Procurement [TRUNCATED] ``` [Download full output](https://docs.groupdocs.com/parser/python-net/_output_files/developer-guide/advanced-usage/options/example-1/apply-load-options.txt) {{< /tab >}} {{< /tabs >}} ## When to use other options - **Search options** — control case-sensitivity or regex mode when calling search APIs. - **Text/formatting options** — request formatted text (HTML/Markdown/plain) where supported. - **Parser settings** — adjust resource loading or timeouts for specific environments. Check the [`groupdocs.parser.options` namespace](https://reference.groupdocs.com/parser/python-net/groupdocs.parser.options/) for the complete list of option classes and their parameters, and pass them to the corresponding methods as documented in the API reference.