'Remove all restrictions from a pdf file
Public Shared Function RemoveRestrictions(ByVal restrictedPdf As String, Optional ByVal password As String = Nothing, Optional ByVal saveABackup As Boolean = True) As Boolean
'Parse text from a specified range of pdf pages
Public Shared Function ParsePdfText(ByVal sourcePDF As String, _
Optional ByVal fromPageNum As Integer = 0, _
Optional ByVal toPageNum As Integer = 0) As String
'Parse all text from a pdf
Public Shared
Function ParseAllPdfText
(ByVal sourcePDF
As String) As Dictionary(Of
Integer,
String)
'Page to page comparision of 2 pdf files and write the differences to a resulting text file
Public Shared Sub ComparePdfs(ByVal pdf1 As String, ByVal pdf2 As String, _
ByVal resultFile As String, _
Optional ByVal fromPageNum As Integer = 0, _
Optional ByVal toPageNum As Integer = 0)
'Extract specified pages from a pdf to create a new pdf
Public Shared Sub ExtractPdfPages(ByVal sourcePdf As String, ByVal pageNumbersToExtract As Integer(), ByVal outPdf As String)
'Split a pdf into specified number of pdfs
Public Shared Sub SplitPdfByParts(ByVal sourcePdf As String, ByVal parts As Integer, ByVal baseNameOutPdf As String)
'Split a pdf into multiple pdfs each containing a specified number of pages.
Public Shared Sub SplitPdfByPages(ByVal sourcePdf As String, ByVal numOfPages As Integer, ByVal baseNameOutPdf As String)
'Extract pages from multiple source pdfs and merge into a final pdf
Public Shared Sub ExtractAndMergePdfPages(ByVal sourceTable As DataTable, ByVal outPdf As String)
'Set security password on an existing pdf file
Public Shared Sub SetSecurityPasswords(ByVal sourcePdf As String, ByVal outputPdf As String, ByVal userPassword As String, ByVal ownerPassword As String)
'Add watermark to pdf pages using an image
Public Shared Sub AddWatermarkImage(ByVal sourceFile As String, ByVal outputFile As String, ByVal watermarkImage As String)
'Add water mark to all pdf pages using text
Public Shared Sub AddWatermarkText(ByVal sourceFile As String, ByVal outputFile As String, ByVal watermarkText() As String, _
Optional ByVal watermarkFont As iTextSharp.text.pdf.BaseFont = Nothing, _
Optional ByVal watermarkFontSize As Single = 48, _
Optional ByVal watermarkFontColor As iTextSharp.text.BaseColor = Nothing, _
Optional ByVal watermarkFontOpacity As Single = 0.3F, _
Optional ByVal watermarkRotation As Single = 45.0F)
'Merge multiple pdfs into a single one.
Public Shared Function MergePdfFiles(ByVal pdfFiles() As String, ByVal outputPath As String, _
Optional ByVal authorName As String = "", _
Optional ByVal creatorName As String = "", _
Optional ByVal subject As String = "", _
Optional ByVal title As String = "", _
Optional ByVal keywords As String = "") As Boolean
'Merge multiple pdf's into one with all bookmarks preserved
Public Shared Function MergePdfFilesWithBookmarks(ByVal sourcePdfs() As String, ByVal outputPdf As String) As Boolean
'Add document outline (bookmarks) to a pdf
Public Shared Sub AddDocumentOutline(ByVal sourcePdf As String, ByVal outputPdf As String, ByVal outlineTable As System.Data.DataTable)
'Extract urls from a pdf
Public Shared Function ExtractURLs(ByVal sourcePdf As String, Optional ByVal pageNumbers() As Integer = Nothing) As System.Data.DataTable
'Extract images from a pdf
Public Shared Function ExtractImages(ByVal sourcePdf As String) As List(Of Image)
'Fill a form
Public Shared Sub FillAcroForm(ByVal sourcePdf As String, ByVal fieldData As DataRow, ByVal outputPdf As String)
Public Shared Sub FillMyForm(ByVal sourcePdf As String, ByVal fieldData As DataRow, ByVal outputPdf As String)
'Add annotatation
Public Shared Sub AddTextAnnotation(ByVal sourcePdf As String, ByVal outputPdf As String)
Public Shared
Function GetAcroFieldData
(ByVal sourcePdf
As String) As Dictionary(Of
String,
String)
Public Shared Function GetPdfSummary(ByVal sourcePdf As String) As DataTable
Public Shared Function ReplacePagesWithBlank(ByVal sourcePdf As String, _
ByVal pagesToReplace As List(Of Integer), _
ByVal outPdf As String, _
Optional ByVal templatePdf As String = "") As Boolean
Public Shared Function InsertPages(ByVal sourcePdf As String, _
ByVal pagesToInsert
As Dictionary(Of
Integer, iTextSharp.
text.
pdf.
PdfImportedPage), _
ByVal outPdf As String) As Boolean
Public Shared Function RemovePages(ByVal sourcePdf As String, ByVal pagesToRemove As List(Of Integer), ByVal outputPdf As String) As Boolean
'A demo on how to draw various shapes in itextsharp
Public Shared Sub DrawShapesDemo(ByVal sourcePdf As String, ByVal outputPdf As String)
Public Shared Sub AddImageToPage(ByVal sourcePdf As String, ByVal outputPdf As String, ByVal imgPath As String, ByVal imgLocation As Point, ByVal imgSize As Size, Optional ByVal pages() As Integer = Nothing)