Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/TLDR-451-tutorial-new-doc-type' …
Browse files Browse the repository at this point in the history
…into TLDR-451-tutorial-new-doc-type
  • Loading branch information
Nikita Shevtsov committed Sep 25, 2023
2 parents de82460 + 18bfd86 commit 235bcd7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/source/tutorials/add_new_doc_type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ General scheme of adding AttachmentExtractor
def __init__(self) -> None:
self.attachment_extractor = PdfAttachmentsExtractor()
def read(self, path: str, document_type: Optional[str] = None, parameters: Optional[dict] = None) -> UnstructuredDocument:
# some code
attachments = self.attachment_extractor.get_attachments(tmpdir, filename, parameters)
# some code
Example of adding pdf/djvu handlers
-----------------------------------

Expand Down

0 comments on commit 235bcd7

Please sign in to comment.