reloxx13/pes_file_pdf_splitter

There is no license information available for the latest version (1.2.2) of this package.

1.2.2 2020-05-14 08:48 UTC

This package is auto-updated.

Last update: 2024-11-14 18:41:18 UTC


README

Simple PHP Class and command line script for splitting a PDF file into several PNG pages

Requirements

This class requires PHP 5.3 or later, and the imagick pecl extension (see http://www.php.net/manual/en/class.imagick.php).

Description

This class allows for simple splitting of a multi-page PDF into several PNG files, with each page from the PDF being saved as a seperate PNG file.

Generated files are named with the name of the master / source PDF file, an incrementing number, and the a PNG extension. So, if provided a PDF file with 10 pages in it named "example.pdf", this class would write 10 pngs, named "example-1.png" through "example-10.png", in the specified directory.

A sample, command line tool for use with the class is also included. This file, "pdf_splitter.php", requires the PEAR Console_Getargs package (see http://pear.php.net/package/Console_Getargs). Information on using this tool is available by running "php pdf_splitter.php --help" on the command line.

Author

Peter E. Snyder - snyderp@gmail.com

Fork from https://github.com/snyderp/PES_File_PDF_Splitter