Inserts the text to input PDF.
Inserts the string "Antenna House, Inc." into all pages of test.pdf and outputs it as out.pdf.
AHPDFToolCmd80.exe -writeText -text "Antenna House, Inc." -align 3 -font -name Meiryo -size 10 -colorText 1.0 0.0 0.0 -opacity 0.8 -d C:\test\test.pdf -o C:\sav\out.pdf
AHPDFToolCmd80 -writeText -text "Antenna House, Inc." -align 3 -font -name ipa-gothic -size 10 -colorText 1.0 0.0 0.0 -opacity 0.8 -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, the text will be added to 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 |
|
|
-text <Val> |
[required] Sets the text to insert. Macro text can also be used for text. For details, see "14-2 Macro Text" in this manual. |
|
|
-pageNo <Val> |
Sets the page number to insert the text. Can be omitted. Page number is 0 origin. Therefore, the first page is counted from "0." If not specified, it will be inserted on all pages. If specifying multiple page numbers, separate them with commas. (Example) "0,2-4" |
|
|
-vertical |
Specifies the vertical writing. Can be omitted. If specified, writes vertically. If not specified, writes horizontally. |
|
|
-align {1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9} |
Sets the insertion position. Can be omitted. 1: Top left 2: Top center 3: Top right If not specified, places at "5: Center." If a value other than 1 to 9 is specified, an error will occur. |
|
|
-angle <Val> |
Sets the angle of the text. Can be omitted. Effective only for horizontal writing. Counterclockwise is a positive value. |
|
|
-font |
[required] Sets the font (*) |
|
|
-name <Val> |
[Required] Font name. |
|
|
-size <Val> |
Sets the font size. Can be omitted. Unit: point |
|
|
-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. 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. |
|
|
-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. |
|
(*)
For information on obtaining font information and restrictions on Antenna House PDF API Command-line, see "Chapter.5 Handling Fonts" and "Chapter.8 Limitations 8-5 Font Limitations" in this manual.