EvotecIT / PSWritePDF

PowerShell Module to create, edit, split, merge PDF files on Windows / Linux and MacOS
GNU Affero General Public License v3.0
195 stars 21 forks source link

Split-PDF option to split every X pages #47

Open PrincessColumbia opened 1 year ago

PrincessColumbia commented 1 year ago

The current behavior (which works fine as a "default") is to split the PDF at every page break. I have a need of something that will split a PDF every x pages. Could look something like this:

Split-PDF -FilePath '.\PDFtoSplit.pdf' -OutputFolder $PathToOutput -pages 2

If no '-pages' variable is specified, then the command defaults to "1"