Download hfd_iclr2027_draft/tools/python/pypdf/__init__.py from Tinghong-Ye22/code-iclr: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/Tinghong-Ye22/code-iclr/resolve/main/hfd_iclr2027_draft/tools/python/pypdf/__init__.py
- Command line
-
hf download hf://Tinghong-Ye22/code-iclr/hfd_iclr2027_draft/tools/python/pypdf/__init__.py
-
curl -L -o __init__.py https://huggingface.co/Tinghong-Ye22/code-iclr/resolve/main/hfd_iclr2027_draft/tools/python/pypdf/__init__.py
1.28 kB
| """ | |
| pypdf is a free and open-source pure-python PDF library capable of splitting, | |
| merging, cropping, and transforming the pages of PDF files. It can also add | |
| custom data, viewing options, and passwords to PDF files. pypdf can retrieve | |
| text and metadata from PDFs as well. | |
| You can read the full docs at https://pypdf.readthedocs.io/. | |
| """ | |
| from ._crypt_providers import crypt_provider | |
| from ._doc_common import DocumentInformation | |
| from ._encryption import PasswordType | |
| from ._page import PageObject, Transformation | |
| from ._reader import PdfReader | |
| from ._text_extraction import mult | |
| from ._version import __version__ | |
| from ._writer import ObjectDeletionFlag, PdfWriter | |
| from .constants import ImageType | |
| from .pagerange import PageRange, parse_filename_page_ranges | |
| from .papersizes import PaperSize | |
| try: | |
| import PIL | |
| pil_version = PIL.__version__ | |
| except ImportError: | |
| pil_version = "none" | |
| _debug_versions = ( | |
| f"pypdf=={__version__}, {crypt_provider=}, PIL={pil_version}" | |
| ) | |
| __all__ = [ | |
| "DocumentInformation", | |
| "ImageType", | |
| "ObjectDeletionFlag", | |
| "PageObject", | |
| "PageRange", | |
| "PaperSize", | |
| "PasswordType", | |
| "PdfReader", | |
| "PdfWriter", | |
| "Transformation", | |
| "__version__", | |
| "_debug_versions", | |
| "mult", | |
| "parse_filename_page_ranges", | |
| ] | |