This section provides an overview of all available commands and options available in PDFix.
A high level summary of the list of available commands and what they do are listed below. For more specific details, please refer to the individual commands below for the specific command.
| Command | Options | Arguments | Description |
|---|---|---|---|
removePages | --seperator, --name | <filePath> <pageNumbers> | Removes specified pages from a pdf file |
extractPages | --seperator, --name | <filePath> <pageNumbers> | Extracts specified pages from a pdf file |
merge | --name | <filePath1> <filePath2> [otherFilePaths] | Takes in two or more pdf files and merges them one after the other in the order specified by the input to the arguments |
help | - | - | Returns a help page describing the list of commands avaialble |
The help command displays a list of all available commands by default.
Format: pdfix help
To display usage information of a single command, call pdfix <command> --help.
This displays a more detailed description of the individual commands with options available.
This part provides an in-depth view of each individual command and what they do.
removePagesThe removePages command removes specified pages from the specified pdf file.
Format: pdfix removePages <filePath> "<pageNumber>" --seperator " " --name "name"
<pageNumber> needs to be enclosed in quotations " for the program to render the selected pages correctly.
Arguments
<filePath> - mandatory file path of the pdf file to modify. File path can be relative or absolute.<pageNumber> - mandatory comma seperated number. If --seperator is defined, then string defined should be seperated by the defined seperator.Options
--seperator or -s - defines a custom seperator for seperating the pages. (Default: ",")--name or -n - defines a custom file name to save the modified pdf file.Examples:
pdfix removePages ./firstPdf.pdf 1,3,5 - remove page 1,3 and 5 from the pdf filepdfix removePages ./firstPdf.pdf 1/3/5 --seperator "/" --name modifiedPdf.pdf - removes page 1,3 and 5 into a new pdf file named modifiedPdf.pdf.extractPagesThe extractPages command removes specified pages from the specified pdf file into a new pdf file.
Format: pdfix extractPages <filePath> "<pageNumber>" --seperator " " --name "name"
<pageNumber> needs to be enclosed in quotations " for the program to render the selected pages correctly.
Arguments
<filePath> - mandatory file path of the pdf file to modify. File path can be relative or absolute.<pageNumber> - mandatory comma seperated number. If --seperator is defined, then string defined should be seperated by the defined seperator.Options
--seperator or -s - defines a custom seperator for seperating the pages. (Default: ",")--name or -n - defines a custom file name to save the modified pdf file.Examples:
pdfix extractPages ./firstPdf.pdf 1,3,5 - extracts page 1,3 and 5 into a new pdf file.pdfix extractPages ./firstPdf.pdf 1/3/5 --seperator "/" --name "modifiedPdf" - extracts page 1,3 and 5 into a new pdf file named modifiedPdf.pdf.mergeThe merge command merges two or more pdf files in the order that they are specified in.
Format: pdfix merge <filePath1> <filePath1> [otherFilePaths]
Arguments
<filePath1> - mandatory file path of the first pdf file.<filePath2> - mandatory file path of the second pdf file.[otherFilePaths] - optional file path of the pdf files to append.Options
--name or -n - defines a custom file name to save the modified pdf file.Examples:
pdfix merge ./firstPdf.pdf ./secondPdf.pdf - merges the two pdf files one in the order from left to right.pdfix merge ./firstPdf.pdf ./secondPdf.pdf ./thirdPdf.pdf --name "findPdf" - meges the three pdf file specified from left to right into a new pdf file named findPdf.pdf.