decryptpdf package¶
- decryptpdf.decrypt_pdf(input_path: Path, output_path: Path, password: str) None[source]¶
Decrypts a PDF file.
Submodules¶
decryptpdf.cli module¶
- decryptpdf.cli.cli(path: ~typing.Annotated[~pathlib.Path, <typer.models.ArgumentInfo object at 0x7255202bc5f0>], password: ~typing.Annotated[str, <typer.models.OptionInfo object at 0x7255202bc590>], overwrite: ~typing.Annotated[bool, <typer.models.OptionInfo object at 0x7255202bc2f0>] = True) None[source]¶
Decrypts a PDF file.
If PATH is a directory, recursively searches for PDF files. If PATH is a file and does not exist, checks if PATH with “.pdf” extension exists. If the file is not encrypted, skips it.