in reply to pdf - page count
Update: CAM::PDF gives a similar error about missing cross-reference data for your sample gaba.pdf file.