Inserts page numbers into the input PDF.
Inserts the page number into test.pdf and output it as out.pdf.
AHPDFToolCmd80.exe -addPageNumber -startNumber 11 -align 9 -colorText 0.0 0.0 1.0 -d C:\test\test.pdf -o C:\sav\out.pdf
AHPDFToolCmd80 -addPageNumber -startNumber 11 -align 9 -colorText 0.0 0.0 1.0 -d /home/antenna/test/test.pdf -o /home/antenna/sav/out.pdf
You can perform batch processing by specifying the input folder to the -d parameter and the output folder to the -o parameter.
If a folder is specified, page numbers will be inserted into the PDF files in the input folder. Note that the output file will be output to the output folder with the same name as the input file name.
|
Parameter |
Content |
|
|
-index <Val> |
Sets the page position to start inserting page numbers. Can be omitted. Page number is 0 origin. Therefore, the first page is counted from "0." If not specified, "0" is applied. |
|
|
-startNumber <Val> |
Sets the starting page number to insert. Can be omitted. |
|
|
-align {1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9} |
Sets the page number insertion position. Can be omitted. 1: Top left 2: Top center 3: Top right |
|
|
-font |
Sets the font [*1]. Can be omitted. |
|
|
-name <Val> |
Sets the font name. Can be omitted. |
|
|
-size <Val> |
Sets the font size. Can be omitted. |
|
|
-bold |
If specified, makes the text bold. |
|
|
-italic |
If specified, makes the text italic. |
|
|
-notEmbed |
If specified, does not embed fonts. |
|
|
-colorText <r> <g> <b> |
Sets the fill color of the text. Can be omitted. If not specified, black (0.0 0.0 0.0) is applied. |
|
|
-colorOutline <r> <g> <b> |
Sets the color of the text outline. Can be omitted. Setting value range: <r>, <g>, <b>, 0.0 to 1.0 for each. If not specified, black (0.0 0.0 0.0) is applied. |
|
|
-opacity <Val> |
Sets the transparency of the text. Can be omitted. Setting value range: 0.0 to 1.0. 0.0 are transparent, 1.0 is opaque. If not specified, 1.0 (opaque) is applied. |
|
[*1]
For information on obtaining font information and restrictions on the Antenna House PDF API Command-line, see "Chapter.5 Handling Fonts" and "Chapter.8 Limitations 8-5 Font Limitations" in this manual.