我再次尝试iText7并重新启动" Hello World"我无法开展工作的例子。这是我的代码:
Imports iText.Kernel.Pdf
Imports iText.Layout
Private Sub Print(sender As Object, e As RoutedEventArgs) Handles btnPrint.Click
Dim dest As String = "f:\Test.pdf"
Dim writer As PdfWriter = New PdfWriter(dest)
Dim pdf As PdfDocument = New PdfDocument(writer)
Dim doc As Document = New Document(pdf)
doc.Add(New Paragraph("Hello World"))
doc.Close()
End Sub
我得到的错误是
Value of type 'String' cannot be converted to 'Inline'.
然而,文档声明构造函数采用字符串。有什么问题?