A fast, helpful, and open-source document parser
Fix bad merge
Logan Markewichee7da8438754
diff --git a/packages/python/liteparse/types.py b/packages/python/liteparse/types.pyindex 10eff2c..fae8372 100644--- a/packages/python/liteparse/types.py+++ b/packages/python/liteparse/types.py@@ -265,6 +265,17 @@ class ParseResult:#: Raw XFA packets; present only when ``extract_xfa_packets=True``.xfa_packets: Optional[List[XfaPacket]] = None+ @property+ def num_pages(self) -> int:+ return len(self.pages)++ def get_page(self, page_num: int) -> Optional[ParsedPage]:+ """Get a specific page by number (1-indexed)."""+ for page in self.pages:+ if page.page_num == page_num:+ return page+ return None+@dataclassclass ParseBatch:@@ -278,17 +289,6 @@ class ParseBatch:#: The pages in ``start_page..end_page``, as an ordinary parse result.result: ParseResult- @property- def num_pages(self) -> int:- return len(self.pages)-- def get_page(self, page_num: int) -> Optional[ParsedPage]:- """Get a specific page by number (1-indexed)."""- for page in self.pages:- if page.page_num == page_num:- return page- return None-@dataclassclass ScreenshotRect: