Understand the OfficeParserAST structure
masterThe OfficeParserAST is a format-agnostic representation of a document. It allows you to work with content from various formats (DOCX, PDF, XLSX, etc.) using a unified schema.
Key components include:
type: The source format (e.g.,'docx','pdf','xlsx').metadata: Document-level properties likeauthor,title, andcreated.content: An array ofOfficeContentNodeobjects representing the document structure (paragraphs, headings, tables, etc.). Each node contains its owntext,children,formatting, andmetadata.auxiliary: Out-of-band elements like headers, footers, or slide masters.attachments: Extracted images or charts (ifextractAttachments: trueis used).warnings: An array ofOfficeIssueobjects for non-fatal parsing issues..to(format, config?): A method to convert the AST into other formats like'html','md','text','csv','rtf','pdf', or'chunks'.