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 #21

Closed lispeedyg closed 3 years ago

lispeedyg commented 3 years ago

Hi, Excellent tool. I was wondering if it would be possible to:

  1. Split all pdf's in a folder
  2. Use the original pdf names in the output file appended with the page no, i.e., ABC-xxx.pdf (Where xxx is PDF page)

Thanks for the excellent tool!!

PrzemyslawKlys commented 3 years ago

Yes, it should be possible.

Use Get-ChildItem on that folder, do the foreach, on each entry in loop split the PDF and provide the path where to split it, if necessary rename the output files to a required naming convention.