The current version (5.5.13.5) is available on the iTextSharp NuGet Gallery . Manual Download:
Locate the version matching your environment (usually under net40 or net45 ) to find the itextsharp.dll file. How to Load iTextSharp in PowerShell
Automating the extraction of data from PDF forms is a common administrative task. powershell
iTextSharp (iText 5) is officially at End of Life (EOL) . The developers recommend migrating to iText 7 or the newer iText 9 for new projects to ensure security and access to modern PDF features. Where to Download iTextSharp.dll
$fileStream = New-Object System.IO.FileStream("C:\Docs\Merged.pdf", [System.IO.FileMode]::Create) $document = New-Object iTextSharp.text.Document $pdfCopy = New-Object iTextSharp.text.pdf.PdfCopy($document, $fileStream) $document.Open() $pdfFiles = Get-ChildItem "C:\Docs\Source\*.pdf" foreach ($file in $pdfFiles) { $reader = New-Object iTextSharp.text.pdf.PdfReader($file.FullName) for ($i = 1; $i -le $reader.NumberOfPages; $i++) { $pdfCopy.AddPage($pdfCopy.GetImportedPage($reader, $i)) } $reader.Dispose() } $document.Close() $fileStream.Dispose() Use code with caution. Troubleshooting Common Issues
Once you have the DLL, you must load it into your PowerShell session before you can use any of its classes. powershell
The safest and most reliable way to obtain the itextsharp.dll is through the official package manager.
Download For Powershell - Itextsharp.dll Portable
The current version (5.5.13.5) is available on the iTextSharp NuGet Gallery . Manual Download:
Locate the version matching your environment (usually under net40 or net45 ) to find the itextsharp.dll file. How to Load iTextSharp in PowerShell itextsharp.dll download for powershell
Automating the extraction of data from PDF forms is a common administrative task. powershell The current version (5
iTextSharp (iText 5) is officially at End of Life (EOL) . The developers recommend migrating to iText 7 or the newer iText 9 for new projects to ensure security and access to modern PDF features. Where to Download iTextSharp.dll powershell iTextSharp (iText 5) is officially at End
$fileStream = New-Object System.IO.FileStream("C:\Docs\Merged.pdf", [System.IO.FileMode]::Create) $document = New-Object iTextSharp.text.Document $pdfCopy = New-Object iTextSharp.text.pdf.PdfCopy($document, $fileStream) $document.Open() $pdfFiles = Get-ChildItem "C:\Docs\Source\*.pdf" foreach ($file in $pdfFiles) { $reader = New-Object iTextSharp.text.pdf.PdfReader($file.FullName) for ($i = 1; $i -le $reader.NumberOfPages; $i++) { $pdfCopy.AddPage($pdfCopy.GetImportedPage($reader, $i)) } $reader.Dispose() } $document.Close() $fileStream.Dispose() Use code with caution. Troubleshooting Common Issues
Once you have the DLL, you must load it into your PowerShell session before you can use any of its classes. powershell
The safest and most reliable way to obtain the itextsharp.dll is through the official package manager.