QPDF is great! I use it heavily to analyze PDFs generated from other applications (PDFTeX, InDesign) to incorporate new features (such as spot colors) in my software (http://speedata.github.io/publisher/index.html) The command line I prefer is
qpdf --qdf --object-streams=disable in.pdf out.pdf
so I can view the result with less or a text editor.