I am trying to do the PowerShell script outlined in the answer here. The question and solution reference "pdfinfo.exe" and "pdfinfo". When I research this, it looks like it should be packaged in some versions of PowerShell but not others. On my machine, the command is not recognized. How might I get this package without downloading a corrupt or malicious file? I am trying to get a total page count of multiple pdf files within a folder structure.
I am using Windows 10 and Powershell / ISE version 5.1.17763.503
Thanks!
51 Answer
When I research this, it looks like it should be packaged in some versions of PowerShell but not others.
pdinfo is not included with PowerShell on Windows. It actually isn't a Windows utility.
However, a Windows port does exist, here. Your script will not work without it.
On my machine, the command is not recognized. How might I get this package without downloading a corrupt or malicious file?
I cannot speak to the legitimacy of the source I have provided. I am only answering this question due to the mistaken belief it's supposed to be installed and/or otherwise included with PowerShell.
The tool in question has nothing to do with PowerShell it is simply a utility being called from a PowerShell script in the answer you linked to.