EvotecIT / PSWritePDF

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

Split-PDF is not possible for PDFs with password #48

Open AndreasLuebbers opened 1 year ago

AndreasLuebbers commented 1 year ago

It would be great if you could implement a new parameter "-password" which is used to open the pdf and split the pdf. When I Try it there comes this error: WARNING: Split-PDF - Error has occured: Exception calling ".ctor" with "1" argument(s): "Bad user password. Password is not provided or wrong password provided. Correct password should be passed to PdfReader constructor with properties. See ReaderProperties#setPassword() method."