pdfinfo.exe isn't working on Powershell

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!

5

1 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.

Source: Windows equivalent for Unix's pdfinfo

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like