Spire.PDF is probably the solution to our needs, however we have a problem right now.
Our goal is to find text pattern on a PDF document and to replace it by some other values.
When dealing with a PDF wherein the text pattern to seek is on a single line, everything is ok. But if the same text pattern is split on multiple line on the PDF, for instance because of the layout of a cell tab (too small to contain the full text so PDF use CRLF to display the text), in this case it's not working anymore.
Find attached a screenshot of the PDF not ok.
I'm using this code :
- Code: Select all
page.FindText("ThisIsTheTextThatWeWouldLikeToMatch", TextFindParameter.WholeWord).Finds
I tried with Regex mode and also CrossLine one, still not ok.
It seems that the FindText can only consider one single line...
Can you please tell us if there is a possibility to deal with this case ?
Thanks a lot.