A-PDF to Image Downsample Command Line 

A-PDF to Image Downsample Command line (pidcmd.exe) is a Windows console utility 
that downsample the PDF file. The pidcmd.exe is included in the download package already. 
You can find it at the installation directory, generally, it is located in 
C:\program files\A-PDF Image Downsample.



PIDCMD.exe <input pdf> <output pdf> -M<Downsample Method> 
           [-S<password>] [-R<page range>] 
           [-F<Filter Width and Height>] [-Q<JEPG Quality>] 
           [-C<Downsample Filter>]

Parameters:
<input pdf>: Source PDF file.
<output pdf>: Output PDF file, if it is not specified, the 
              output file will be same as the input file
<Downsample Method>: Method of downsample.
    -D<Max Dpi>: Downsample by DPI, Default is 72.smaple: -MD72    
    -P<Scale Percent>: Downsample by Scale,Default is 70
                       (in percent).sample -MP70    
    -W<DownSample Width and Height>: Downsample by Width and 
                                     Height.sample: -MW600x800.

-S<password>: Password of source PDF file if application.
-R<page range>: Sample 1,2,5-10. Default(null) is all
-F<Filter Width and Height>: Filter in downsample. 
                             sample -F600x800.

-Q<JEPG Quality>: Default is 85

-C<Downsample Filter>: Defult is 9, other filters:    
                       0 =None    
                       1 =Triangle    
                       2 =Hermite    
                       3 =Bell    
                       4 =Spline    
                       5 =Lanczos3    
                       6 =Mitchell    
                       7 =Nearest     
                       8 =Linear    
                       9 =FastLinear    
                       10=Bilinear    
                       11=Bicubic

Examples:    PIDCMD "C:\pdfs\source.pdf" "C:\pdfs\destination.pdf"  -MD72 -S"123" -R2-10 -F600x800 -Q90 -C8
             note: "123" is a password for Source PDF file 

Return code:
 0: Success
 2: Input file does not exist
 3: Create output dir failed
 4: Load PDF error
 5: Invalided Password
 6: Non-support Security
 7: Create output file failed
 8: Can not save to output file
