Use this file to discover all available pages before exploring further.
Organizations that have Zero Data Retention (ZDR) enabled can parse password-protected files.To parse a password-protected file, pass the document’s password in the password parameter when calling the API.
Add the password parameter to your request when parsing a password-protected file. The parameter is optional. If the file is not password-protected, the value is ignored.
If you submit a password-protected file without the password parameter, the request returns a 422 error. For more information, go to Troubleshoot Parsing.
from pathlib import Pathfrom landingai_ade import LandingAIADEclient = LandingAIADE()# Replace with your file pathresponse = client.parse( document=Path("/path/to/file/document"), password="YOUR_DOCUMENT_PASSWORD",)print(response.chunks)# Save Markdown output (useful if you plan to run extract on the Markdown)with open("output.md", "w", encoding="utf-8") as f: f.write(response.markdown)