blob: a84b056918aa93f11828dd7f2e52e58a9007adf5 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
"""
All errors/exceptions PyPDF2 raises and all of the warnings it uses.
Please note that broken PDF files might cause other Exceptions.
"""
class DeprecationError(Exception):
"""Raised when a deprecated feature is used."""
pass
class DependencyError(Exception):
pass
class PyPdfError(Exception):
pass
class PdfReadError(PyPdfError):
pass
class PageSizeNotDefinedError(PyPdfError):
pass
class PdfReadWarning(UserWarning):
pass
class PdfStreamError(PdfReadError):
pass
class ParseError(Exception):
pass
class FileNotDecryptedError(PdfReadError):
pass
class WrongPasswordError(FileNotDecryptedError):
pass
class EmptyFileError(PdfReadError):
pass
STREAM_TRUNCATED_PREMATURELY = "Stream has ended unexpectedly"
|