mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Update custom parser docs
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon