Return document tree structure JSON (without text fields).
(self, doc_id: str)
| 222 | return get_document(self.documents, doc_id) |
| 223 | |
| 224 | def get_document_structure(self, doc_id: str) -> str: |
| 225 | """Return document tree structure JSON (without text fields).""" |
| 226 | if self.workspace: |
| 227 | self._ensure_doc_loaded(doc_id) |
| 228 | return get_document_structure(self.documents, doc_id) |
| 229 | |
| 230 | def get_page_content(self, doc_id: str, pages: str) -> str: |
| 231 | """Return page content for the given pages string (e.g. '5-7', '3,8', '12').""" |
no test coverage detected