VB.Net Merge multiple pdfs into one and export
问题 I have to merge multiple PDFs into a single PDF. I am using the iText.sharp library, and collect converted the code and tried to use it (from here) The actual code is in C# and I converted that to VB.NET. Private Function MergeFiles(ByVal sourceFiles As List(Of Byte())) As Byte() Dim mergedPdf As Byte() = Nothing Using ms As New MemoryStream() Using document As New Document() Using copy As New PdfCopy(document, ms) document.Open() For i As Integer = 0 To sourceFiles.Count - 1 Dim reader As