我在vb.net中得到了这段代码
Imports RasterEdge.Imaging.Basic.TextSearch
Imports RasterEdge.XDoc.PDF
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
'Open a document
Dim doc As PDFDocument = New PDFDocument(Application.StartupPath & "/Vertrag.pdf")
'Set the search options
Dim options As RESearchOption = New RESearchOption()
options.IgnoreCase = False
options.WholeWord = False
'Replace "RasterEdge" with "Image"
doc.Replace("#Name", "#Lame", options) <-- Here i get the error
doc.Save(Application.StartupPath & "/testoutput.pdf")
End Sub
End Class
我标记了弹出 System.ArgumentOutOfRangeException 错误的位置。
所有这些都使用RasterEdge dlls用另一段文本替换一段文本(#Name - &gt; #Lame(只是一个测试))
你们有什么想法吗?