![]() ![]() Using FPDI (a PHP library)įPDI is easy to use and install (just extract files and call a PHP script), BUT many of the compression techniques are not supported by FPDI. That was with both the getNumberImages() and identifyImage() methods. Imagick requires a lot of installation, apache needs to restart, and when I finally had it working, it took amazingly long to process (2-3 minutes per document) and it always returned 1 page in every document (haven't seen a working copy of Imagick so far), so I threw it away. Here are some of the answers I found insufficient or simply NOT working: Using Imagick (a PHP extension) PDF documents come from many different clients, so they aren't generated with the same application and/or don't use the same compression method. ![]() ![]() Since I work for a graphic printing and reproduction company that works a lot with PDFs, the number of pages in a document must be precisely known before they are processed. Many hours have I searched for a fast and easy, but mostly accurate, way to get the number of pages in a PDF document. The solution is the accepted answer below. This question is for referencing and comparing.
0 Comments
Leave a Reply. |