Je suis actuellement en train d'adapter le tutoriel original (en anglais) de pdfsam basic en français.
Il ne me reste qu'une partie: celle traitant de l'utilisation en ligne de commande.
Et je doit bien l'avouer; je n'ai pratiquement aucune connaissance dans l'utilisation de la console.
Comme je ne veux pas écrire n'importe quoi ni éliminer une partie importante du sujet, je m'adresse donc aux aficionados de la ligne de commande qui voudraient bien traduire en français le texte qui suit:
CONSOLE
pdfsam-console is a command line application. It uses jcmdline to parse input parameters and it executes the proper command. It's the core application and it provides pdf manipulation. The main GUI loads plugins, once clicked the plugin "Run" button (merge or split), the plugin performs input data validation and, if everything is correct, it creates an arguments array and than it sends it to the console.
To run the console type ***spam*** command: "java -jar /PATH_TO_PDFSAM/lib/pdfsam-console-CURRENT_VERSION.jar"
Here is a list of the console arguments:
Usage: Pdfsam options command
where:
command = command to execute {[concat], [split]} (required)
and options are:
Merge
-? prints usage to stdout; exits (optional)
-f <file> pdf files to concat. a list of existing pdf files (EX. -f /tmp/file1.pdf -f /tmp/file2.pdf)
-h prints usage to stdout; exits (optional)
-help displays verbose help information (optional)
-l <file> csv file containing pdf files list to concat in comma separated value format (optional)
-log <file> text file to log output messages (optional)
-o <file> pdf output file. if it doesn't exist it's created, if it exists it must be writeable (required).
-u <string> page selection script. You can set a subset of pages to merge. Accepted values: "all" or "num1-num2" separated by ":" (EX. -f /tmp/file1.pdf -f /tmp/file2.pdf -u all:all:), (EX. -f /tmp/file1.pdf -f /tmp/file2.pdf -u all:12-14:) to merge file1.pdf and pages 12,13,14 of file2.pdf. If -u is not set default behaviour is to merge document completely (optional).
-overwrite if passed, overwrite existing output file
-copyfields use this if input documents contain forms. This option will lead to a high memory usage.
-version displays command's version (optional).
Split
-? prints usage to stdout; exits (optional)
-f <file> input pdf file to split (required)
-h prints usage to stdout; exits (optional)
-help displays verbose help information (optional)
-n <num> page number to spli at if -s is SPLIT or NSPLIT (optional)
-log <file> text file to log output messages (optional)
-o <dir> output directory (required).
-overwrite overwrite existing output file (optional)
-p <s> prefix for the output files name (optional). If it contains "[CURRENTPAGE]" or "[TIMESTAMP]" it performs variable substitution. (Ex. [BASENAME]_prefix_[CURRENTPAGE] generates FileName_prefix_005.pdf). Available prefix variables: [CURRENTPAGE], [TIMESTAMP], [BASENAME]
-s <string> split type {[BURST], [ODD], [EVEN], [SPLIT], [NSPLIT]} (required)
-version displays command's version (optional).
Examples:
java -jar pdfsam-console-0.4.3.jar -f c:\t.pdf -o c:\ -s ODD split
ava -jar pdfsam-console-0.4.3.jar -f c:\file1.pdf -f c:\file2.pdf -o c:\out_file.pdf -u all:1-3: concat
Bien entendu, tout participant dont la prose sera retenu verra son nom cité sur ledit tutoriel.
Je vous remercie tous d'avance.
-
Bigpapa
- Messages : 5
- Géo : Courbevoie (Hauts de seine)