foxtable确实是一个不错的开发软件。
我已经知道在 PDF中提取信息:
Dim reader As New iTextSharp.text.pdf.PdfReader("D:\HJ160329ME1006+空白6+非甲烷总烃.pdf")
Dim n As Integer = reader.NumberOfPages
Dim str As String = ""
For i As Integer = 1 To n
Dim strategy As object = New iTextSharp.text.pdf.parser.SimpleTextExtractionStrategy()
Dim currentText As String = iTextSharp.text.pdf.parser.PdfTextExtractor.GetTextFromPage(Reader, i, strategy)
currentText = Encoding.UTF8.GetString(ASCIIEncoding.Convert(Encoding.[Default], Encoding.UTF8, Encoding.[Default].GetBytes(currentText)))
str &= currentText
Next
msgbox(str)
reader.Close()
但是,如附件的PDF中,我应该如何准确的提取 9790Ⅱ 、JC-01-002、2016-03-30 08:59、以及 1 总烃 5.6820,2 甲烷 1.7391 ,或者还有 3 某物质 0.0000 ......到表中!
以上,请求帮助