Merge selected PDFs into one PDF, or automatically merge every PDF in the current working folder when source is omitted.
pdfMerge(output_file="Merged.pdf", source=None)output_fileType: str, default "Merged.pdf"
Name of the merged PDF. The file is written inside the `merged pdf` output folder. A path is reduced to its filename.
sourceType: path, iterable of paths, or None
Optional explicit input. Pass one PDF path or an iterable of PDF paths. If omitted, all `.pdf` files in the current working folder are discovered.
A `Path` pointing to the merged PDF, or `None` when no PDFs are found.
pdfMerge()pdfMerge(output_file="final.pdf")pdfMerge(source=["chapter1.pdf", "chapter3.pdf"])pdfToword(pdfMerge())The output is created in `merged pdf/`. Explicit `source` enables deterministic nesting and prevents unrelated PDFs in the current folder from being processed.
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.