Report question

Question: How can I tell the resolution of scanned PDF from within a shell script?