Shareware and Freeware Open Source Windows Software Applications and Free Online Tools

4dots Free PDF Compress Icon  4dots Free PDF Compress - Command Line Usage

Command Line Usage

It is also possible to execute the application from the command prompt.

The usage of the application is the following :

Compresses PDF Files. 4dotsFreePDFCompress.exe [[file|directory]][/images:TRUE|FALSE][/quality:QUALITY _VALUE][/userpassword:USER_PASSWORD_VALUE] [/subdirs] [/overwrite][/backup][outf ilename:OUTPUT_FILE_VALUE] [outputfolder:OUTPUT_FOLDER_VALUE] [/l:IMPORT_LIST_FI LE_VALUE][/log:LOG_FILE_VALUE][/?]

file : one or more pdf or image files to be processed.
directory : one or more directories containing pdf files to be processed.
images: Compress images or not. True value is default.
quality: Image Compression Quality. Integer from 0 to 100.
userpassword: Document user password.
subdirs : process also subdirectories of specified directories
overwrite : overwrite existing PDF document
backup : keep backup in case of overwrite
outfilename : Output filename. If not specified the file will have the same file name but will end with "_compressed"".
/l : Import list of files to be processed from a text file. One file or folder o n each line. In case the document has a password it's line should be comma separated.
/log : Logfile where output messages should be logged.
Enter [FILENAME] for document's filename without extension and [EXT] for document's extension.
outputfolder: Output folder value (if different than the folder of the first file)
/? : show help


For example to compress PDF File "c:\invoices\invoice1.pdf" we execute something like :

4dotsFreePDFCompress.exe "c:\invoices\invoice1.pdf"

To compress "c:\invoices\invoice1.pdf" but not it's images we execute:

4dotsFreePDFCompress.exe "c:\invoices\invoice1.pdf" /images:FALSE

To compress "c:\invoices\invoice1.pdf" with image quality 15%.

4dotsFreePDFCompress.exe "c:\invoices\invoice1.pdf" /quality:15

To compress PDF documents found in the list "c:\invoices\InvoiceList.txt" and log to "c:\invoices\log.txt" we execute :

4dotsFreePDFCompress.exe /l:"c:\invoices\InvoiceList.txt" /log:"c:\invoices\log.txt"

To compress PDF File "c:\invoices\invoice1.pdf" that has a user password (for opening) "A12123" we execute :

4dotsFreePDFCompress.exe "c:\invoices\invoice1.pdf" /userpassword:"A12123"

To compress PDF File "c:\invoices\invoice1.pdf" and overwrite it and keep backup of the existing file,we execute :

4dotsFreePDFCompress.exe "c:\invoices\invoice1.pdf" /overwrite /backup

To compress all PDF Files found in folder "c:\invoices",we execute :

4dotsFreePDFCompress.exe "c:\invoices"

Drag and drop PDF documents to set their metadata.