in reply to how to read PDF file ?
Check out CAM::PDF.
PDF::API2 is also quite useful for manipulating PDF's.