Password-protect the first selected PDF or the first discovered PDF.
pdfProtect(output_file="protected.pdf", password="12345", source=None)output_fileType: str, default "protected.pdf"
Name of the protected PDF. The file is written inside `protected pdfs/`.
passwordType: str, default "12345"
Password used by pypdf to encrypt the PDF. For production code, provide a stronger password rather than relying on the default.
sourceType: path, iterable of paths, or None
Optional explicit PDF input. Only the first selected PDF is protected.
A `Path` pointing to the protected PDF, or `None` when no PDFs are found.
pdfProtect(password="StrongPassword123!")pdfProtect(password="StrongPassword123!", source=pdfMerge())When source is omitted, Toolvix discovers matching files in the current working folder. When source is supplied, only the supplied files are processed. This makes nested pipelines deterministic.