1# SPDX-FileCopyrightText: 2022 James R. Barlow
2# SPDX-License-Identifier: MPL-2.0
3
4"""Python implementation of higher level PDF constructs."""
5
6from __future__ import annotations
7
8from pikepdf.models._content_stream import (
9 ContentStreamInstructions,
10 PdfParsingError, # legacy
11 UnparseableContentStreamInstructions,
12 parse_content_stream,
13 unparse_content_stream,
14)
15from pikepdf.models.encryption import Encryption, EncryptionInfo, Permissions
16from pikepdf.models.image import (
17 PdfImage,
18 PdfInlineImage,
19 UnsupportedImageTypeError, # legacy
20)
21from pikepdf.models.metadata import PdfMetadata
22from pikepdf.models.outlines import (
23 Outline,
24 OutlineItem,
25 OutlineStructureError,
26 PageLocation,
27 make_page_destination,
28)
29
30__all__ = [
31 'ContentStreamInstructions',
32 'PdfParsingError', # legacy
33 'UnparseableContentStreamInstructions',
34 'parse_content_stream',
35 'unparse_content_stream',
36 'Encryption',
37 'EncryptionInfo',
38 'Permissions',
39 'PdfImage',
40 'PdfInlineImage',
41 'UnsupportedImageTypeError', # legacy
42 'PdfMetadata',
43 'Outline',
44 'OutlineItem',
45 'OutlineStructureError', # legacy
46 'PageLocation',
47 'make_page_destination',
48]