Is there any samples of using cPostscriptInfo function?

Hello. I’m trying to get some info on PDF file. Is it possbile? For example I need to detect if there are A4 or A3 pages. So, I scanned list of functions and the only suitable is cPostscriptInfo.