I am trying to use powershell to extract pages from pdf files. This functionality comes from PDFtk. The pdftk executable resides under program files (x86)\subfolders, which is one of the problems, even though I quote the path.
One example of the failed command is:
Cmd = "powershell -noexit ""C:\Program Files (x86)\PDFtk\bin\pdftk"" """ & FilePth & """ cat " & Rng & " output """ & Pth & OutFile & """"
The console returns error: x86 : The term 'x86' is not recognized as the name of a cmdlet
I have also tried passing in a script block, to change the current directory to the pdfpk location, and it still doesnt work.
So, I wonder what it is that I am doing wrong, or should be doing.
Any help will be appreciated
One example of the failed command is:
Cmd = "powershell -noexit ""C:\Program Files (x86)\PDFtk\bin\pdftk"" """ & FilePth & """ cat " & Rng & " output """ & Pth & OutFile & """"
The console returns error: x86 : The term 'x86' is not recognized as the name of a cmdlet
I have also tried passing in a script block, to change the current directory to the pdfpk location, and it still doesnt work.
So, I wonder what it is that I am doing wrong, or should be doing.
Any help will be appreciated