Search for specified texts, fill the matched locations with the mask color, and delete the character data at the corresponding location.
Search for the keywords "TEST" and "abcd" in "test.pdf" and mask the matched locations.
AHPDFToolCmd80.exe -searchText -sort -pageNo 2 -keyword "TEST" "abcd" -caseSensitive -maskColor 1.0 0.0 0.0 -opacity 0.5 -d C:\test\test.pdf -o C:\sav\out.pdf
AHPDFToolCmd80 -searchText -sort -pageNo 2 -keyword "TEST" "abcd" -caseSensitive -maskColor 1.0 0.0 0.0 -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. |
|
-maskColor <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. |