Skip to content

Instantly share code, notes, and snippets.

@aaroncalderon
aaroncalderon / Merge-PDF.ps1
Last active April 18, 2021 03:05
Merge PDFs with PowerShell
#Not my code, this is from Mike Pfeiffer - http://mikepfeiffer.net/2010/03/how-to-merge-pdf-files-using-powershell-and-pdfsharp/
#Requires PDFSharp assembly libraries http://sourceforge.net/projects/pdfsharp/
#You need to load the assembly before you can use the function
#
#Merge-PDF -path c:\pdf_docs -filename c:\saved_docs.pdf
Add-Type -Path C:\assemblies\PdfSharp.dll
Function Merge-PDF {
<#
.Synopsis
Converts a PowerShell object to a Markdown table.
.Description
Converts a PowerShell object to a Markdown table.
.Parameter InputObject
PowerShell object to be converted