Merging PDF Files

PDFsam

MergePdf

PS C:\> Get-PSRepository
PS C:\> Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
PS C:\> Install-Module -Name MergePdf
PS C:\> Get-Help Merge-Pdf
PS C:\> Get-Help Merge-Pdf -examples
PS C:\>Merge-Pdf
PS C:\>Merge-Pdf -OutputPath c:\output\out.pdf `
-Path c:\input\in.pdf -Append
PS C:\>Merge-Pdf -OutputPath c:\out\out.pdf
PS C:\>Merge-Pdf -Path c:\input\ -OutputPath c:\output\out.pdf
PS C:\>'c:\file1.pdf' ,'c:\file2.pdf' | `
Merge-Pdf -OutputPath c:\out.pdf

Ghostscript

c:\>gswin64 ^
-dBATCH ^
-dNOPAUSE -q ^
-sDEVICE=pdfwrite ^
-dPDFSETTINGS=/prepress ^
-sOutputFile=YourOutputPdfFile.pdf ^
YourInputfile1.pdf ^
YourInputfile2.pdf

--

--

Learner. Interests include Cloud and Devops technologies.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store