1
저는 bitarray를 반환해야하는 pdf를 만드는 함수가 있습니다. 아래의 코드유형 1 차원 배열의 값을 system.collections.bitarray로 변환 할 수 없습니다.
Public Function GenPDF() As BitArray
Dim pdfdoc1 As BitArray
Dim doc As New Document(iTextSharp.text.PageSize.LETTER, 10, 10, 42, 35)
Try
Dim MemStream As New MemoryStream
Dim wri As PdfWriter = PdfWriter.GetInstance(doc, MemStream)
'Open Document to write
doc.Open()
'Write some content
Dim paragraph As New Paragraph("This is my first line using Paragraph.")
Dim pharse As New Phrase("This is my second line using Pharse.")
Dim chunk As New Chunk(" This is my third line using Chunk.")
' Now add the above created text using different class object to our pdf document
doc.Add(paragraph)
doc.Add(pharse)
doc.Add(chunk)
pdfdoc1 = MemStream.GetBuffer()
Catch dex As DocumentException
'Handle document exception
Catch ex As Exception
'Handle Other Exception
Finally
'Close document
doc.Close()
End Try
입니다 그러나 그것은 = 유형 1 차원 배열의 값이 을 system.collections.bitarray로 변환 할 수 없습니다() MemStream.GetBuffer이