From 37f323d836c27221dffc6bd0a97de87197e36d92 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 9 Apr 2025 16:21:27 -0700 Subject: [PATCH] Update custom parser docs --- docs/development.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/development.md b/docs/development.md index 5353c164d..ea30aaba2 100644 --- a/docs/development.md +++ b/docs/development.md @@ -390,7 +390,7 @@ Custom parsers can be added to Paperless-ngx to support more file types. In order to do that, you need to write the parser itself and announce its existence to Paperless-ngx. -The parser itself must extend `documents.parsers.DocumentParser` and +The parser itself must extend `paperless.parsers.DocumentParser` and must implement the methods `parse` and `get_thumbnail`. You can provide your own implementation to `get_date` if you don't want to rely on Paperless-ngx' default date guessing mechanisms. @@ -418,7 +418,7 @@ class MyCustomParser(DocumentParser): ``` If you encounter any issues during parsing, raise a -`documents.parsers.ParseError`. +`paperless.parsers.ParseError`. The `self.tempdir` directory is a temporary directory that is guaranteed to be empty and removed after consumption finished. You can use that