This seems like it should be easy: loop through text in a pdf file, find a word and then change it. Thank you for any help you can give! -sthurlock
'example look for word "hello" then change to "goodbye"
' HOW TO CHANGE SELECTED HERE?????
'example look for word "hello" then change to "goodbye"
Code:
If pdDoc.Open("c:\test\test.pdf") Then
jso = pdDoc.GetJSObject
If Not jso Is Nothing Then
count = jso.getPageNumWords(0)
For i = 0 To count - 1
word = jso.getPageNthWord(0, i)
If StrComp(word, "Hello", CompareMethod.Text)=0 Then
jso.selectPageNthWord(0, i)
Code:
End If
Next i
'then save and close doc
End If