Home > Products > Advanced PDF Tools


Advanced PDF Tools Command Line User Manual

 

Version: v3.0

Content

Overview

Advanced PDF Tools can be executed from command line called Advanced PDF Tools Command Line. Using the command and parameters provided by the software specification, you can directly edit or add data to PDFs, setting open action, page layout, page size, page margin, page orientation, metadata, optimize for the web (linearize), compression and others into your existing PDF files. You can easily call the program from VC, VB, Delphi, ASP, PHP, .Net and other languages or scripts. You can integrate this product into your web solution. If you have developer license, you can embed the program in your own application and distribute it royalty free.




Features


Command Line Usage

Advanced PDF Tools Copyright (C) 2000-2008 VeryPDF.com Inc

Website: http://www.verypdf.com

Release Date: Sep 13 2008

Usage:

pdftools.exe [options] { [-i ] "input-file" } "output-file"

Options:

-i "PDF file name" : A PDF filename or a directory for input.
-o "PDF file name" : PDF filename for output.

-r                   : Show the detail information for input pdf file(s)

-t "Title"           : Set title

-a "Author"          : Set author

-s "Subject"         : Set subject

-k "Keywords"        : Set keywords

-d "CreatedDate"     : Set create date

-m "ModifyDate"      : Set modify date

-c "Creator"         : Set creator

-p "Producer"        : Set producer

-D                   : Write document summaries into PDF file in ASCII

-e "MetaData"        : Set MetaData, select a XML file for set metadata or "" to clear metadata

-b "PageMode"        : Set PageMode

-x "PageBox"         : Set PageBox for PDF file

-X "PageBoxes"       : Remove or set Crop, Bleed, Trim, Art boxes

-g "PageLayOut"      : Set PageLayOut

-n "PageViewReferce" : Set PageViewReferce

-q "OpenAction"      : Set OpenAction

-f "Rotate"          : Set PDF page rotation

-v                   : View the PDF file after process

-u "Page Range"      : Set page range

-w  Page Number      : Set the current page when open the file

-z "Page Scale"      : Set the pages size by page scale

-y                   : Add new information to PDF files

-j                   : Change PDF page content

-J "Content scale"   : Extended scale PDF page content

-@                   : Change PDF page content rotation

-#                   : Change PDF page margin size

-~                   : Change PDF page margin offset

-! "Linearized"      : Change PDF document to Linearized document

-^                   : Reverse PDF document pages order

-&                   : Remove pages from PDF file

-*                   : Insert pages to PDF file

-l "Log file name"   : Specify log file for output message

-S "options"         : Set more options to PDF files
  -S "linearize=true": Optimize PDF file for fast web view
  -S "skip=true"     : Skip existing PDF files instead of overwrite
  -S "openpwd=XXX"   : Set 'open password' to PDF file
  -S "ownerpwd=XXX"  : Set 'owner password' to PDF file
  -S "keylen=X"      : Key length (40 or 128 bit)
    -S "keylen=0"    : 40 bit RC4 encryption (Acrobat 3 or higher)
    -S "keylen=1"    : 128 bit RC4 encryption (Acrobat 5 or higher)
    -S "keylen=2"    : 128 bit AES encryption (Acrobat 7 or higher)
  -S "-permission=XXX"  : Restrictions
    -S "-permission=0"  : Deny anything
    -S "-permission=1"  : Allowed print the document
    -S "-permission=2"  : Allowed modify the content of the document
    -S "-permission=4"  : Allowed copy text and graphics from the document
    -S "-permission=8"  : Allowed add or modify annotations
    -S "-permission=16" : Allowed fill in interactive form fields
    -S "-permission=32" : Allowed extract text and graphics from the document
    -S "-permission=64" : Allowed assemble the document
    -S "-permission=128": Allowed print the document with high resolution
  -S "attachfiles=file1|file2|file3|file4" : Attach files into PDF file
    e.g. -S "attachfiles=C:\1.txt|C:\2.jpg|C:\3.pdf"
  -S "attachfiles=C:\filelist.lst" : Retrieve files from a .txt file
  -S "collection=true"  : Enable collection feature for attachments
  -S "collection=false" : Disable collection feature for attachments

-$ "Registration key": Set your registration key for PDF Tools software

-?                   : Help

-h                   : Help

The command line syntax is UNIX like. Command line arguments in brackets ([ ...]) are optional. Arguments in curly brackets ({ ... }) can be repeated.
 


Input and output  PDF file

-i, -o

The option -i is to specify a PDF filename or a directory for input, and the option -o to specify the PDF filename for output.

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf"    

Usually all of the command (except help and registration) need to specify the input file and output file. If you don't specify the -o parameter (output file), the default output will overwrite the input file.
 


Show PDF file information

-r

The option -r is to show the detail information of selected PDF files, including file name, PDF version, security, file page count, title, author, etc.

pdftools.exe -i "C:\input.pdf" -r    

where the "C:\input.pdf" is the file's path name.
 


Set PDF file information

Set title

-t

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -t "title"     

Set author

-a

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -a "author"     

Set subject

-s

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -s "subject"      


 

Set keywords

-k

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -k "keywords"      

Set create date

-d

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -d "D:YYYYMMDDHHmmSSOHH'mm'"       
For example, you can input
pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -d "D:20040930122809-07'00'"       

D:YYYYMMDDHHmmSSOHH'mm' is the form of date where
YYYY is the year
MM is the month
DD is the day (01--C31)
HH is the hour (00--C23)
mm is the minute (00--C59)
SS is the second (00--C59)
O is the relationship of local time to Universal Time (UT), denoted by one of the characters +, , or Z (see below)
HH followed by ' is the absolute value of the offset from UT in hours (00--C23)
mm followed by ' is the absolute value of the offset from UT in minutes (00--C59)
The apostrophe character (') after HH and mm is part of the syntax. All fields after the year are optional. (The prefix D:, although also optional, is strongly recommended.)
The default values for MM and DD are both 01; all other numerical fields default to zero values. A plus sign (+) as the value of the O field signifies that local time is later than UT, a minus sign () signifies that local time is earlier than UT, and the letter Z signifies that local time is equal to UT. If no UT information is specified, the relationship of the specified time to UT is considered to be unknown. Regardless of whether the time zone is known, the rest of the date should be specified in local time.


For example, December 23, 1998, at 7:52 PM, U.S. Pacific Standard Time, is represented by the string D:199812231952-08'00'
 


Set modify date

-m

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -m "D:YYYYMMDDHHmmSSOHH'mm'"       

The date has the same format as -d.

Set creator

-c

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -c "creator"      

Set producer

-p

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -p "producer"     

 

Set open action

Set page view mode

-b

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -b "option"   

where the "option" is a name object specifying how the document should be displayed when opened. The value can be as following:

Value Description
UseNone Neither document outline nor thumbnail images visible
UseOutlines Document outline (such as bookmarks) visible
UseThumbs Thumbnail images visible
FullScreen Full-screen mode, with no menu bar, window controls, or any other window visible
UseOC (PDF 1.5) Optional content group panel visible

For example, you can input

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -b "UseNone"   

to hide outline or thumbnail, or

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -b "UseOutlines"   

to display the outline (bookmarks) of the file output.pdf when opening, or

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -b "UseThumbs"   

to display thumbnail images when opening the output.pdf, and

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -b "FullScreen"   

or to open the file with in full screen, or

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -b "UseOC"   
More than one value can be set separated by comma or blank, e.g.
pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -b "FullScreen UseOutlines"   
There is no order among -i, -o and -b, so you can also write as this,

pdftools.exe -b "FullScreen UseOutlines" -i "C:\input.pdf" -o "C:\output.pdf"   




Set start page number

-w

The option -w is to set the current page when opening the PDF file.

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -w number    

where "number" is the open page number, e.g.

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -w 2    

to set page 2 the start page when opening



 

Set page magnification

-q

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -q "option"    

where the option is magnification value as follows:

Value Description
FitBH (PDF 1.1) Display the page with the contents of the page magnified just enough to fit the entire width of its bounding box within the window
FitH Display the page with the contents of the page magnified just enough to fit the entire width of the page within the window
Fit Display the page with its contents magnified just enough to fit the  entire page within the   window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the page within the window in the other dimension
FitV Display the page the contents of the page magnified just enough to fit the entire height of the page within the window
FitB (PDF 1.1) Display the page with its contents magnified just enough to fit its bounding box entirely within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the bounding box within the window in the other dimension
FitBV (PDF 1.1) Display the page with the contents of the page magnified just enough to fit the entire height of its bounding box within the window
CLEAR Remove the page magnification from the PDF file
>=25 Display pages with any magnification>=25%
50 Display pages with magnification=50%
<=1600 Display pages with any magnification<=1600%

For example, you can input

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -q "FitBH"    

to show the page with content to fit entire width of page's bounding box within the window, with the same effect as  "Fit Visible" option in Adobe Acrobat v6.0 or "Fit visible" in Advanced PDF Tools v2.0,

and

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -q "FitH"    

to show the page with content magnified just to fit the width of page within the window, the same effect as "Fit Width" in Adobe Acrobat v6.0 or "Fit width" in Advanced PDF Tools v2.0,

and

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -q "Fit"    

to show the page with content magnified to fit the width and height of page within the window, the same effect as "Fit page" in Adobe Acrobat v6.0 or "Fit in window" in Advanced PDF Tools v2.0,

and

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -q "FitV"    

to show the page with content fitting to the height of page within the window, like "Fit height" in Advanced PDF Tools  v2.0, and

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -q "FitB"    

to show the page with content large enough to fit the width and height of bounding box of page within the window,

and

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -q "FitBV"    

to show the page with content to fit the height of bounding box of page within the window,

and

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -q "CLEAR"    

to remove the page magnification from the PDF file,

and

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -q "100"    

to show the page with magnification 100%, like "Actual Size" in Adobe Acrobat v6.0.



 

Set page layout

-g

The option -g specifies the page layout to be used when the document is opened.

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -g "option"     

where the option can be one of the following values:

Value Description
Singlepage Display one page at a time
OneColumn Display the pages in one column
TwoColumnLeft Display the pages in two columns, with odd numbered pages on the left
TwoColumnRight Display the pages in two columns, with odd numbered pages on the right

For example, you can input

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -g "Singlepage"    

or

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -g "OneColumn"     

or

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -g "TwoColumnLeft"     

or

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -g "TwoColumnRight"     

     


Set viewer preferences

-n

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -n "Key Key-value "    

where the Key is an optional name of one of the followings, and the Key-value is a Boolean type value also described below:

Key Description and Default Value
HideToolbar (Optional) A flag specifying whether to hide the viewer application's tool bars when the document is active. Default value: false.
HideMenubar (Optional) A flag specifying whether to hide the viewer application's menu bar when the document is active. Default value: false.
HideWindowUI (Optional) A flag specifying whether to hide user interface elements in the document's window (such as scroll bars and navigation controls), leaving only the document's contents displayed. Default value: false.
FitWindow (Optional) A flag specifying whether to resize the document's window to fit the size of the first displayed page. Default value: false.
CenterWindow (Optional) A flag specifying whether to position the document's window in the center of the screen. Default value: false.
DisplayDocTitle (Optional; PDF 1.4) A flag specifying whether the window's title bar should display the document title taken from the Title entry of the document information. If false, the title bar should instead display the name of the PDF file containing the document. Default value: false.

The former three keys are interface option, and the latter three keys are window option. You can input more than one keys after -n, e.g.   

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -n "HideMenubar false HideToolbar true HideWindowUI false FitWindow true CenterWindow false DisplayDocTitle false"    

 

Set PDF page rotation and information

Set page rotation

-f

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -f "90"    

where 90 is the degree of rotation, which can be replaced by other degree such as 180, 270, -90, -180,etc.

Change page size (set page box)

-x

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -x "llx lly urx ury"    

where the parameter "llx lly urx ury" is a form of rectangles, which is described in remark one.
Remark One: Rectangle Description
Rectangles are used to describe locations on a page and bounding boxes for a variety of objects, such as fonts. A rectangle is written as an array of four numbers giving the coordinates of a pair of diagonally opposite corners. Typically, the array takes the form [ll
x lly urx ury] specifying the lower-left x, lower-left y, upper-right x, and upper-right y coordinates of the rectangle, in that order. The other two corners of the rectangle are
then assumed to have coordinates (llx, ury) and (urx, lly).

Remark Two:
Usually there are three size unit such as point (pt), inch (in), millimeter (mm). Point size can be converted to inch like point/72=inch, and point to millimeter like point/72*25.4=millimeter. For example, the 595.5pt can be 8.27in or 210.06mm by calculating as:

595.5/72=8.27
595.5/72*25.4=210.06

Remark Three: if urx (Width) or ury (Height) equal zero, the value of urx (Width) or ury (Height)  will be calculated automatically, maintain their original aspect ratio,
eg.
pdftools.exe -i C:\in.pdf -o C:\out.pdf -x "0 0 612 792" -j "612 792 true"
pdftools.exe -i C:\in.pdf -o C:\out.pdf -x "0 0 612 0" -j "612 0 true"       //ury
(Height) will be calculated automatically
pdftools.exe -i C:\in.pdf -o C:\out.pdf -x "0 0 0 792" -j "0 792 true"       //urx
(Width) will be calculated automatically


Set page scale

-z

The option -z is to set the page size by page scale

pdftools -i "C:\input.pdf" -o "C:\output.pdf" -z "90 110"    

means set page width to 90% of primary page width, and page height to 110% of primary page height.


Set page content

Set custom page content scale

-j

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -j "60% 70% true"    

where the first parameter means to set page content to 60% of the page width and the second parameter to 70% of the page height, and the third parameter is a Boolean type value to set whether to center on page. 

Note:

You can also use

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -j "60 70 true"     

to set page content, where 60 and 70 are not scales, but the real size of the content. If you use -x to set page size, you can use -j to scale to fit the page by using the last two parameters of -x, e.g.

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -x "0 0 595.5 842.25"  -j "595.5 842.25 true"    

or

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -x "0 0 595.5 842.25"  -j "50% 100% true"    


Remark:
if Width or Height equal zero, the value of Width or Height will be calculated automatically, maintain their original aspect ratio.

eg.
pdftools.exe -i C:\in.pdf -o C:\out.pdf -x "0 0 612 792" -j "612 792 true"
pdftools.exe -i C:\in.pdf -o C:\out.pdf -x "0 0 612 0" -j "612 0 true"       //
Height will be calculated automatically
pdftools.exe -i C:\in.pdf -o C:\out.pdf -x "0 0 0 792" -j "0 792 true"       //
Width will be calculated automatically

Change page content rotation

-@

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" "-@" "270"    

to rotate all of the page content of document of 270 degree.

Change page margin size

-#

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" "-#" "25"    

to set the page margin 25 pt.

Change margin offset

-~

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" "-~" "20,30"   

where the first parameter is x-offset and the next y-offset.



Set affected page range

-u

-f, -x, -z, -j, @, -#, -~ can change in the whole page rang. If you want these changes only affect some pages, you can use -u command, e.g. 

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -u "2,4-8,29-32,38"   

where 2,4-8,29-32,38 is the page range available to -x, -f, -z, -@, -#, -~

Note: Page number starts from 1.

 


Set metadata

-e

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -e "C:\metadata.xml"    

to select a XML file to add to the input.pdf file.

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -e ""    

to remove the metadata from the file C:\input.pdf


Remark: Metadata
A PDF document may include general information, such as the document's title, author, and creation and modification dates. Such global information about the document (as opposed to its content or structure) is called metadata and is intended to assist in cataloguing and searching for documents in external databases. A document's metadata may also be added or changed by users or plug-in extensions. Beginning with PDF 1.4, metadata can also be specified for individual components of a document.



Set page boundaries

-X

The option -X is to remove or set Crop, Bleed, Trim, Art boxes.

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -X "Crop:Remove"    

to remove the Crop box.

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -X "Crop:0 0 800 800"    

to set the Crop box.

You can set Crop, Bleed, Trim and Art boxes separated by comma, e.g.

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -X "Crop:Remove, Bleed:Remove, Trim:Remove, Art:Remove " 

or

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -X "Crop:0 0 800 800, Bleed:0 0 800 800, Trim:0 0 800 800, Art:0 0 800 800"    



Remark: Page Boundaries
A PDF page may be prepared as part of a prepress process in which the content of the page is placed on an intermediate medium, such as film or an imposed reproduction plate. It is important to distinguish between the intermediate page and the finished page. The intermediate page may often include additional production-related content, such as bleeds or printer marks, that falls outside the boundaries of the finished page. To handle such cases, a PDF page can define as :

Media box: defines the boundaries of the physical medium on which the page is to be printed. Content falling outside this boundary can safely be discarded without affecting the meaning of the PDF file.

Crop box: the region to which the contents of the page are to be clipped (cropped) when displayed or printed.  The default value is the page's media box.

Bleed box: the region to which the contents of the page should be clipped when output in a production environment. The default value is the page's crop box.

Trim box: the intended dimensions of the finished page after trimming. The default value is the page's crop box.

Art box: the extent of the page's meaningful content (including potential white space) as intended by the page's creator. The default
value is the page's crop box.

Note: Media box set by -x in default.



                      


Add new information to PDF file

-y 

There are several ways to add new information like follows:

Add new custom Properties to an existing PDF file and overwrite original custom Properties,

pdftools -i "C:\input.pdf" -o "C:\output.pdf" -y "key1=value1,key2=value2"     

or

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -y "/key1(value1) /key2(value2)"    

Append new custom Properties  to an existing PDF file,
pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -y "+key1=value1,key2=value2"    

or

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -y "+/key1(value1) /key2(value2)"   

e.g.

pdftools -i "C:\input.pdf" -o "C:\output.pdf" -y "Our Company=VeryPDF Company, Support Email=support@verypdf.com, Our Web URL=http://www.verypdf.com"   
or
pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -y "/Our#20Company(VeryPDF Company) /Support#20Email(support@verypdf.com) /Our#20Web#20URL(http://www.verypdf.com)"  
or

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" -y "+/Our#20Company(VeryPDF Company) /Support#20Email(support@verypdf.com) /Our#20Web#20URL(http://www.verypdf.com)"  



 

View the PDF file after process

-v  
Open the created PDF file in default PDF viewer application automatically.

pdftools.exe -i C:\input.pdf -o C:\output.pdf -v    

Set fast web view (Linearize)

-!

The file can be optimized for fast web viewing. The command allows you set fast web view to your PDF document which can be downloaded for viewing on the web one page at a time. If this option is not used, the entire PDF file downloads before it is displayed.

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" "-!" "True"     

to set fast web view.

Reverse PDF document pages order

-^

pdftools.exe -i "C:\input.pdf" -o "C:\output.pdf" "-^"    



Remove pages from PDF file

-&

pdftools.exe  -i "C:\input.pdf" -o "C:\output.pdf" "-&" "1,2-4,9"    

Insert pages to PDF file

-*  

pdftools.exe  -i "C:\input.pdf" -o "C:\output.pdf" "-*" "2|0|d:\pdf1.pdf/1,2-4,9|d:\pdf2.pdf/1,3"   

insert pages specified by page range (/1,2-4,9) of  d:\pdf1.pdf and d:\pdf2.pdf into C:\input.pdf  before second page. 2 means source file's page number,  0 means before and 1 after.

Specify log file for output message

-l

pdftools.exe -i "C:\input.pdf" -r -l "C:\output.log"     


 

Register

-$ 

pdftools.exe "-$" "Registration key"    

Set your registration key for PDF Tools software.

Help

-? , -h

pdftools.exe -?   

or

pdftools.exe -h   

 

 

More Example Command Line options:

 

Show PDF information:

pdftools.exe -i c:\input.pdf -r
pdftools.exe -i c:\input.pdf -R
pdftools.exe -i c:\*.pdf -R

Summary setting:

pdftools.exe -i c:\input.pdf -o c:\out.pdf -t title -s subject -l c:\err.log
pdftools.exe -i c:\input.pdf -t title -a author -k "123,456" -d "2003-11-11"
pdftools.exe -i c:\input.pdf -k "+PDF Tools"
pdftools.exe -i c:\pdfdir\*.pdf -o d:\ -s subject -k "book,rtf,doc,text,pdf"

Open action setting:

pdftools.exe -i c:\input.pdf -b "FullScreen UseOutlines"
pdftools.exe -i c:\input.pdf -x "0 0 800 800"
pdftools.exe -i c:\input.pdf -g "SinglePage"
pdftools.exe -i c:\input.pdf -n "HideToolbar true
pdftools.exe -i c:\input.pdf -q "FitBH" or -q "50"

Page setting:

pdftools.exe -i c:\input.pdf "-f" 90
pdftools.exe -i c:\input.pdf "-u" "2,4-8,29-32,38"
pdftools.exe -i c:\input.pdf "-w" 10
pdftools.exe -i c:\input.pdf "-z" "90 110"
pdftools.exe -i C:\input.pdf -o C:\out.pdf -x "0 0 612.0 792.0" -j "612.0 792.0 true"
pdftools.exe -i C:\input.pdf -o C:\out.pdf -x "0 0 612.0 0" -j "612.0 0 true"
pdftools.exe -i C:\input.pdf -o C:\out.pdf -x "0 0 0 792.0" -j "0 792.0 true"
pdftools.exe -i c:\input.pdf "-j" "90% 120% true"
pdftools.exe -i c:\input.pdf "-@" 90
pdftools.exe -i c:\input.pdf "-#" 12.5
pdftools.exe -i c:\input.pdf "-~" "12,15"
pdftools.exe -i c:\input.pdf "-!" true
pdftools.exe -i c:\input.pdf "-^" true
pdftools.exe -i c:\input.pdf "-&" "1,2-4,9"
pdftools.exe -i c:\input.pdf "-*" "2|0|d:\pdf1.pdf/1,2-4,9|d:\pdf2.pdf/1,3"
pdftools.exe -i c:\input.pdf "-*" "d:\pdf1.pdf|d:\pdf2.pdf"
pdftools.exe -i c:\input.pdf "-J" "firstpage=[0.75,0.75,0,160,0,0,0],evenpages=[0.84,0.84,0,-10,0,0,0],oddpages=[0.84,0.84,0,90,0,0,0]"

Metadata setting:

pdftools.exe -i c:\input.pdf -e "c:\metadata.xml"

Custom field setting:

pdftools.exe -i c:\input.pdf -y "key1=value1,key2=value2"
pdftools.exe -i c:\input.pdf -y "+key1=value1,key2=value2"
pdftools.exe -i c:\input.pdf -y "/key1(value1) /key2(value2)"
pdftools.exe -i c:\input.pdf -y "+/key1(value1) /key2(value2)"
pdftools.exe -i c:\input.pdf -y "Our Company=VeryPDF Company,Support Email=support@verypdf.com,Our Web URL=http://www.verypdf.com"
pdftools.exe -i c:\input.pdf -y "/Our#20Company(VeryPDF Company) /Support#20Email(support@verypdf.com) /Our#20Web#20URL(http://www.verypdf.com)"

Look for damaged PDF files in subdirectories:

pdftools.exe -i C:\temp\*.pdf -A -M
pdftools.exe -i C:\temp\*.pdf -A
pdftools.exe -i C:\temp\*.pdf -A -M -l C:\report.log

Enable Fast Web View to PDF files:

pdftools.exe -i C:\in.pdf -o C:\out.pdf -S "linearize=true"
pdftools.exe -i C:\*.pdf -o D:\*.pdf -S "linearize=true" -S "skip=true"

Set permissions and password to PDF files:

pdftools.exe -i C:\*.pdf -o D:\*.pdf -S ownerpwd=123 -S openpwd=123 -S keylen=2 -S permission=129

Attach various files to PDF files:

pdftools.exe -S "attachfiles=C:\1.txt|C:\2.jpg|C:\3.pdf" -i C:\in.pdf -o C:\out.pdf
pdftools.exe -S "attachfiles=C:\*.*" -i C:\in.pdf -o C:\out.pdf
pdftools.exe -S "attachfiles=C:\filelist.lst" -i C:\in.pdf -o C:\out.pdf
pdftools.exe -S collection=true -S "attachfiles=C:\filelist.lst" -i C:\in.pdf -oC:\out.pdf

Register pdftools software:

pdftools.exe "-$" "Your Registration key"

Requirement to System

 Win98/ME/2000/XP/2003/Vista OS (32bit and 64bit)

Advanced PDF Tools Command Line Home page.

 
PDF DOCUMENT SUMMARY :: PDF SUMMARY MAKER :: PDF PAGE NUMBERER :: PDF INFO CHANGER :: PDF SHRINK :: PDF INFORMATION MANAGER  :: PDF INFORMATION EDITOR :: JPEG2000 :: PDF COMPRESS :: PDF OPTIMIZER :: PDF REDUCER :: PDF LINEARIZATION :: PDF METADATA :: PDF COMPRESSOR :: PDF PAGE COUNTER