PDF Batch Command
Line
(Available
for the registered user for PDFill PDF Editor)
DOS
Command Support: You can start a batch job in Windows by
issuing the execution command directly from the MS-DOS
command prompt window without opening the PDFill GUI.
Note:
Please put "" on your file name with space. Make sure all
command is in one line.
1. PDF Form Data Export and
Import
2. Bookmark Export and Import
3. Merge PDF Page into a new PDF
4. Split or Extract a PDF into a new PDF
5. Encrypt or Decrypt a PDF
6. Rotate or Crop PDF Pages
7. Reformat PDF Pages
8. Add Header or
Footer on PDF Pages
9. Add Watermark by
Text on PDF Pages
10. Add Watermark by
Image on PDF Pages
11. Convert Images to
PDF
12.
Convert PDF into Image
13.
Export and Import Metadata Information
1.
PDF Form Data Export and Import
Export a PDF form into a Excel table with
Column Name "B" or Append to to Excel table with Column
Name "C"
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
EXPORT Input.pdf B Output.XLS
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
EXPORT Input.pdf APPEND C Output.XLS
//Append the field values to Column C
Export a PDF form into FDF, TXT, XLS or CSV
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
EXPORT Input.pdf Output.FDF "C:\Program Files\PlotSoft\PDFill\PDFill.exe"
EXPORT Input.pdf Output.TXT (Tab-delimited Text File)
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
EXPORT Input.pdf Output.XLS "C:\Program Files\PlotSoft\PDFill\PDFill.exe"
EXPORT Input.pdf Output.CSV
(Comma-delimited Text File)
Import a Excel table with
Column Name "B"
into a PDF form
(Before using Import, please use Export first to see the file format)
"C:\Program
Files\PlotSoft\PDFill\PDFill.exe" IMPORT XLS B
Input.xls Input.pdf Output.pdf "C:\Program Files\PlotSoft\PDFill\PDFill.exe"
IMPORT XLS
B
Input.xls Input.pdf Flatten Output.pdf (to Flatten
the Output.pdf)
Import a tab-delimited text file into a PDF Form
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
IMPORT TXT Input.txt Input.pdf Output.pdf "C:\Program
Files\PlotSoft\PDFill\PDFill.exe" IMPORT TXT Input.txt
Input.pdf Flatten Output.pdf (to Flatten
the Output.pdf)
Import FDF into a PDF form
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
IMPORT FDF Input.fdf Input.pdf Output.pdf "C:\Program
Files\PlotSoft\PDFill\PDFill.exe" IMPORT FDF Input.fdf
Input.pdf Flatten Output.pdf (to Flatten the
Output.pdf)
2.
Bookmark Export and Import
Export PDF's Bookmark into a XML file
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
EXPORT BOOKMARK Input.pdf Output.xml
Import a XML Bookmark file into a PDF
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
IMPORT BOOKMARK Input.xml Input.pdf Output.pdf
3.
Merge PDF Page into a new PDF
Merge PDFs into a new PDF
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
MERGE Input1.pdf Input2.pdf Input3.pdf Output.pdf
Merge
all PDFs under a folder into a new PDF
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
MERGE
"C:\Test\" Output.pdf
4.
Split or
Extract a PDF into a new PDF
Split a PDF into a new PDF according
to page number selection
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
SPLIT "1,3-6,10,13,24" Input.pdf Output.pdf
Extract a PDF into a serial of single
or multiple
pages "C:\Program Files\PlotSoft\PDFill\PDFill.exe"
EXTRACT
3 Input.pdf Output.pdf
5.
Encrypt or
Decrypt a PDF
Encrypt a PDF "C:\Program Files\PlotSoft\PDFill\PDFill.exe"
ENCRYPT Input.pdf Output.pdf -bit 40 -option 11110000 -userpassword str1
-ownerpassword str2
-
-bit 40: Encryption Level bit with 40 or
128.
-
-option 11110000: The option String
consists of 8 bit of 0 or 1 for
Printing, Modify Contents,
Copy, Modify Annotations, Fill In, Screen Readers, Assembly, Degraded Printing.
11111111 means all checked and 00000000 means all unchecked.
-
-userpassword str1: String str1 is for
User Password. If the user password is empty, don't use this
option.
-
-ownerpassword str2: String str2 is
for Owner Password. If the owner password is empty, don't use
this option.
-
Example:
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
ENCRYPT
"D:\Test\complaintform.pdf"
"D:\Test\output.pdf"
-bit 128 -option 00000000
-userpassword pdfill
Decrypt a PDF: "C:\Program Files\PlotSoft\PDFill\PDFill.exe"
DECRYPT Input.pdf Output.pdf -password str
-
-password str: String str is Password
to open this PDF if it is password-protected. If there is no password
to open this PDF, don't use this
option.
-
Example:
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
DECRYPT
"D:\Test\visa.pdf"
"D:\Test\output.pdf"
-password 4567
6.
Rotate or Crop
PDF Pages
Rotate PDF
Pages "C:\Program Files\PlotSoft\PDFill\PDFill.exe"
ROTATE Input.pdf Output.pdf degree
-
Degree: Rotate
page by
0, 90 (Clockwise 90), 180, 270 (Counterclockwise
90)
-
Example:
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
ROTATE
"D:\Test\visa.pdf"
"D:\Test\output.pdf"
90
Crop PDF Pages "C:\Program Files\PlotSoft\PDFill\PDFill.exe"
CROP Input.pdf Output.pdf leftMargin rightMargin bottomMargin
topMargin
7.
Reformat PDF Pages
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
Reformat Input.pdf Output.pdf
W H
row column
leftMargin rightMargin bottomMargin
topMargin horizSpace
vertSpace -showNoteline 1 -showBorder 1 -rgbColor "0 0 255" -lineWidth 2.0
- W H: Specify
new PDF's Page Width and Height in Point
- row column: Specify
Number of Rows and Columns that
appears in the new page.
- leftMargin rightMargin bottomMargin
topMargin: Specify Page Margin from
Left, Right, Bottom and Top Edges
- horizSpace vertSpace: Specify the
horizontal and vertical space between the
original PDF pages.
- -showNoteline 1: (Optional)
Show Note Line if -showNoteline 1; Doesn't show Note Line if -showNoteline
0. Default is 0
- -showBorder 1:
(Optional) Show Border if -showBorder 1; Doesn't show Border if -showBorder
0. Default is 0
- -rgbColor "0 0 255": (Optional)
line color in Red, Green Blue Component between 0 to 255. Default is
0 0 255. Note:
Put "" on the 3 values
and each value (0-255) is separated with space.
- -lineWidth 2.0:
(Optional) line width in Point. Default is 1.0
-
Example:
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
Reformat
"D:\BatchTest\FormsAPIReference.pdf"
"D:\BatchTest\output.pdf"
612 792 2 1 9 18 27 36 18 36 -showNoteline 1 -showBorder 1 -rgbColor
"0 0 255" -lineWidth 2.0
8.
Add Header or
Footer on PDF Pages
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
HeadFoot Input.pdf Output.pdf flagHeadFoot
addOnFirstPage leftMargin rightMargin bottomMargin
topMargin "HeaderFooterString"
-align 1 -pageOffset 10 -fontEncode "Western" -fontName "Times New
Roman" -fontStyle 3 -fontSize 12.0 -rgbFontColor "0 0 255"
- flagHeadFoot:
0 is Adding Header Only, 1 is Adding Footer only, and 2 is adding
both Header and Footer.
- addOnFirstPage: If 1, add on First Page; if 0, don't add on First
page
- leftMargin rightMargin bottomMargin
topMargin: Specify the
white margin space around the header or footer.
- "HeaderFooterString": "Page <<1>>
of <<N>>" Where <<1>> means Page Index and <<N>> is the total page
number.
- -align 1: (Optional) the value can
0 (left), 1 (center) or 2 (right). Default is 0.
- -pageOffset 10: (Optional) the
page offset to add onto the page Index and the total page number.
Default is 0.
- -fontEncode "Western": (Optional)
Font Encode. Default is "Western".
- -fontName "Times New Roman":
(Optional) Font name. Default is "Times New Roman".
- -fontStyle 3: (Optional) Font
Styles: 0 (Regular), 1 (Bold), 2 (Italic) and 3 (Bold Italic).
Default is 0
- -fontSize 12.0: (Optional) Font
Size. Default is 12.0
- -rgbFontColor "0 0 255":
(Optional) font color in Red, Green and Blue Component between 0 to 255.
Default is 0 0 255. Note:
Put "" on the 3 values
and each value (0-255) is separated with space.
- Example:
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
HeadFoot
"D:\BatchTest\FormsAPIReference.pdf"
"D:\BatchTest\output.pdf"
2 1 18 36 18 36 "Test Page <<1>> of <<N>>, Oct 2012"
-align 1 -pageOffset 10 -fontEncode "Western" -fontName "Times New Roman"
-fontStyle 3 -fontSize 12.0 -rgbFontColor "0 0 255"
9.
Add Watermark by
Text on PDF Pages
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
WatermarkText Input.pdf Output.pdf "Top
Secret"
-fontEncode "Western" -fontName
"Times New Roman" -fontStyle 3 -rgbFontColor "0 0 255" -rgbStrikeColor
"255 0 0" -flagLayout
0 -drawType 1 -StrokeSize 1.0 -flagOrder 0 -transparency 0.5
- "Top Secret":
The string to be added as Watermark. Must have "" if there is space.
- -fontEncode "Western": (Optional)
Font Encode. Default is "Western".
- -fontName "Times New Roman":
(Optional) Font name. Default is "Times New Roman".
- -fontStyle 0: (Optional) Font
Styles: 0 (Regular), 1 (Bold), 2 (Italic) and 3 (Bold Italic).
- -rgbFontColor "0 0 255":
(Optional) Font color in Red, Green and Blue Component between 0 to 255.
Default is 0 0 255. Note:
Put "" on the 3 values
and each value (0-255) is separated with space.
- -rgbStrikeColor "255 0 0":
(Optional) Strike color in Red, Green and Blue Component between 0 to 255.
Default is 255 0 0. Note:
Put "" on the 3 values
and each value (0-255) is separated with space.
- -flagLayout
0: (Optional) 0 (Horizontal), 1 (Vertical), and 2 (Diagonal).
Default is 0.
- -drawType
1: (Optional) 0 (Fill), 1 (Stroke), 2 (Fill and Stroke), and 3
(Invisible). Default is 1.
- -StrokeSize
1.0: (Optional) the stroke size using Percent of the actual font
size. Default is 1.0.
- -flagOrder
0: (Optional) 0 is Background and 1 is Foreground. Default is 1.
-
-transparency
0.5: (Optional) value
between 0 and 1. Default is 0.
- Example:
"C:\Program Files\PlotSoft\PDFill\PDFill.exe" WatermarkText
"D:\BatchTest\FormsAPIReference.pdf"
"D:\BatchTest\output.pdf"
"Top
Secret"
-fontEncode "Western" -fontName "Times New Roman"
-fontStyle 3 -rgbFontColor "0 0 255" -rgbStrikeColor
"255 0 0"
-flagLayout
0 -drawType 1 -StrokeSize 1.0 -flagOrder 0
-transparency 0.5
10.
Add Watermark by
Image on PDF Pages
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
WatermarkImage Input.pdf Output.pdf ImagePathName
scaleX scaleY rotateDegree -positionFlag 1 -left 36 -bottom 72 -flagOrder
1 -URL "http://www.PDFill.com"
- ImagePathName: An
image file (bmp, png, gif, jpeg, tiff, wmf) that you want to add
into the PDF file as Watermark.
- scaleX scaleY:
The Percentage of Image Scale
Size in Width and Height.
- rotateDegree: Image
Rotation in degree.
- -positionFlag
1: (Optional) 0 is Center of the page and 1 is Any Position. Default
is 0.
- -left 36:
(Optional) Left
position in Point defined when -positionFlag
1. Default is 0.
- -bottom 72:
(Optional) Bottom
position in Point defined when -positionFlag 1. Default is 0.
- -flagOrder
1: (Optional) 0 is Background and 1 is Foreground. Default is 1.
- -URL
"http://www.PDFill.com": (Optional)
The URL address that the click on
this image will direct to a web page defined by this URL.
- Example:
"C:\Program Files\PlotSoft\PDFill\PDFill.exe" WatermarkImage
"D:\BatchTest\FormsAPIReference.pdf"
"D:\BatchTest\output.pdf"
"D:\BatchTest\Water
lilies.jpg" 100 100 45
-positionFlag
1 -left 36 -bottom 72 -flagOrder 1 -URL
"http://www.PDFill.com"
11.
Convert Images to
PDF
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
Image2PDF
Image1 Image2 Image3 Output.pdf W H
row column
leftMargin rightMargin bottomMargin
topMargin horizSpace vertSpace
-showFileName 1 -defaultImageFolder "C:\Test\"
- Image1 Image2 Image3: You can have many Images as you
need. It can be just image files or folders. If Image(N)
is a folder, all the images files under this folder will be added;
If it is image file name without a folder path, the
-defaultImageFolder
option must be used.
- W H: Specify
new PDF's Page Width and Height in Point
- row column: Specify
Number of Rows and Columns that
appears in the new page.
- leftMargin rightMargin bottomMargin
topMargin: Specify the
distance from
Left, Right, Bottom and Top Edges of the Images to the PDF
Page's edge.
- horizSpace vertSpace: Specify the
horizontal and vertical space in Point between the
images.
- -showFileName 1: (Optional) Flag to show File Name. Default is 0
- -fontSize 12.0: (Optional) Font
Size. Default is 12.0. Font Name of Adobe's Time Roman Normal is
used.
- -defaultImageFolder "C:\Test\": (Optional) If set, there is no
need to add folder path on
Image1 Image2 Image3.
- Example:
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
Image2PDF
"Water
lilies.jpg" "D:\Test\" "Blue hills.jpg" "Winter.jpg" "Sunset.jpg"
"output.pdf"
612 792 1 2 9 18 27 36 18 36
-showFileName 1 -fontSize 12.0 -defaultImageFolder "C:\BatchTest\"
12.
Convert PDF into Image
"C:\Program
Files\PlotSoft\PDFill\PDFill.exe"
PDF2Image Input.pdf
OutputImageName Image_Resolution Color_Bits
Page_Number_Bits JPG_Quality Flag_TIF
-
outputImageName:
Image Type with PNG, GIF,
BMP, PCX, WMF, EMF, JPG or TIF.
-
Image_Resolution:
Image Resolution.
-
Color_Bits: Color
Bits with 1, 8 or 24 bits.
-
Page_Number_Bits:
Page Number Digits between 1 and 6.
-
JPG_Quality: Flag
for For JPG Image Type. Set the JPG quality between
0-100.
-
Flag_TIF: Flag
(0/1) for TIF Image Type. If set 1, create a single
file with multiple pages.
-
Example:
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
PDF2Image
"D:\Test\visa.pdf"
"D:\visa_.png" 144 24 1 100 1
13.
Export and Import
Metadata Information
Export Metadata Information
from a PDF file into a TXT or XML file
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
EXPORT INFORMATION Input.pdf Output.txt (Tab-delimited Text File) "C:\Program Files\PlotSoft\PDFill\PDFill.exe"
EXPORT
INFORMATION Input.pdf Output.xml (XML)
Import Metadata
Information from a TXT or XML file into a PDF file
"C:\Program Files\PlotSoft\PDFill\PDFill.exe"
IMPORT INFORMATION Input.txt Input.pdf Output.pdf "C:\Program Files\PlotSoft\PDFill\PDFill.exe"
IMPORT
INFORMATION Input.xml Input.pdf Output.pdf
|