Searches for specified texts and inserts highlight annotations at the matched locations.
Search for the keywords "TEST" and "abcd" in "test.pdf" and add highlight annotations to the matched locations.
AHPDFToolCmd80.exe -searchTextAndHighlight -sort -pageNo 2 -keyword "TEST" "abcd" -caseSensitive -color 0.5 0.0 0.7 -opacity 0.5 -d C:\test\test.pdf -o C:\sav\out.pdf
AHPDFToolCmd80 -searchTextAndHighlight -sort -pageNo 2 -keyword "TEST" "abcd" -caseSensitive -color 0.5 0.0 0.7 -opacity 0.5 -d /home/antenna/test/test.pdf -o /home/antenna/sav/out.pdf
|
Parameter |
Content |
|
-pageNo <Val> |
Can be omitted. Page number is 0 origin. Therefore, the first page is counted from "0." |
|
-keyword <Val> |
The text to search for. Up to three elements can be specified to search for. Specifying four or more will result in an error. An error will occur if neither "-keyword" nor "-keywordRegEx" is specified. |
|
-keywordRegEx <Val> |
Regular expression search keyword. Up to three elements can be specified to search for. Specifying four or more will result in an error. An error will occur if neither "-keyword" nor "-keywordRegEx" is specified. |
|
-sort |
Can be omitted. For English text specifically, specifying this parameter enables space detection based on the gaps between characters, allowing for searches that recognize words and spaces. |
|
-caseSensitive |
Can be omitted. |
|
-color <r> <g> <b> |
Can be omitted. Setting value range: <r>, <g>, <b> each 0.0 to 1.0 |
|
-opacity <Val> |
Can be omitted. Setting value <Val> range: 0.0 to 1.0. |