I am using swftools for converting PDF to SWF. In my case, I need to know number of pages and width/height of any page in PDF. Right now I execute pdf2swf -I command and then parse its output line by line which I feel isn't the right way specially for large files. Is there any other way of getting this information?
One possible way could be getting this information in one line.