ITextSharp include all pages from the input file
问题 I used the following code by using itextsharp library to add text to a pdf.(got the code from link ITextSharp insert text to an existing pdf Dim reader As New PdfReader(oldFile) Dim size As iTextSharp.text.Rectangle = reader.GetPageSizeWithRotation(1) Dim document As New iTextSharp.text.Document(size) ' open the writer Dim fs As New FileStream(newFile, FileMode.Create, FileAccess.Write) Dim writer As PdfWriter = PdfWriter.GetInstance(document, fs) document.Open() ' the pdf content Dim cb As