All formats

PDF libraries for PHP

Most PHP PDF libraries generate documents; few read them.

Pick Dompdf or mPDF to turn HTML templates into PDFs (mPDF for complex scripts, but note the GPL), TCPDF or FPDF to draw documents from code, FPDI to merge or stamp existing files, and PdfParser to extract text. For heavier tasks, call qpdf, Ghostscript or Poppler tools from PHP.