You can download the PDF specification here http://www.adobe.com/devnet/pdf/pdf_reference.html

I must warn you its 1,310 pages long.