spire.pdf.free 5.1.0
MacOS Monterey 12.2
JDK1.8
使用findText()方法时报错,使用spire.pdf9.9.6没有此错误
PdfTextFindCollection collection = page.findText("${shipToAddress}");
com.spire.pdf.packages.sprZvB: Illegal repetition near index 1
\${shipToAddress}
^
at com.spire.pdf.packages.sprOyB.spr (vgf:1550)
at com.spire.pdf.packages.sprOyB.spr (vgf:2526)
at com.spire.pdf.packages.sprOyB.spr (vgf:2262)
at com.spire.pdf.packages.sprOyB.spr (vgf:1478)
at com.spire.pdf.packages.sprOyB.spr (vgf:1620)
at com.spire.pdf.packages.sprOyB.<init>(vgf:975)
at com.spire.pdf.packages.sprOyB.spr (vgf:941)
at com.spire.pdf.packages.sprCyB.<init>(tlc:13)
at com.spire.pdf.packages.sprcnb.spr (Unknown Source)
at com.spire.pdf.packages.sprcnb.spr (Unknown Source)
at com.spire.pdf.PdfPageBase.findText(Unknown Source)
at com.spire.pdf.PdfPageBase.findText(Unknown Source)
at com.spire.pdf.PdfPageBase.findText(Unknown Source)