You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `passifypdf` tool accepts the following command-line arguments:
4
+
5
+
| Option | Long Option | Required | Description |
6
+
| :--- | :--- | :--- | :--- |
7
+
|`-i`|`--input`| Yes | Path to the input PDF file. |
8
+
|`-o`|`--output`| Yes | Path to the output (encrypted) PDF file. |
9
+
|`-p`|`--passwd`| Yes | Password to use for encryption. **Avoid passing sensitive passwords directly on the command line, as they may be exposed via process listings and shell history.**|
10
+
|`-v`|`--version`| No | Show the program's version number and exit. |
11
+
|`-h`|`--help`| No | Show the help message and exit. |
12
+
13
+
## Example Usage
14
+
15
+
```bash
16
+
# Using the installed CLI command (after `poetry install`)
arg_parser=argparse.ArgumentParser(description=("Encrypt a PDF file with a password of your choice."), epilog=("For more information, visit: https://github.com/SUPAIDEAS/passifypdf"))
4
+
defget_arg_parser() ->argparse.ArgumentParser:
5
+
arg_parser=argparse.ArgumentParser(
6
+
description="Encrypt a PDF file with a password of your choice.",
7
+
epilog="For more information, visit: https://github.com/SUPAIDEAS/passifypdf"
0 commit comments