我想从PDF文件读取并将其写入列表框。我正在使用此代码(与itextsharp)
Dim s As String = Text1.Text & "\" & Text2.Text
Dim reader As New PdfReader(s)
Dim its As ITextExtractionStrategy = New
iTextSharp.text.pdf.parser.LocationTextExtractionStrategy
Dim i As Integer = 1
Dim thePage As String = PdfTextExtractor.GetTextFromPage(reader, i, its)
Dim theLines() As String
theLines = thePage.Split() '\n')
List2.Items.Clear()
For i = 0 To theLines.Count - 1
list2.Items.Add(theLines(i).ToString)
Next
PDF的一部分是用希伯来语书写的问题,所以我得到了应该是希伯来语行的空白字段。
我该怎么办?