Code Monkey home page Code Monkey logo

pes_file_pdf_splitter's Introduction

PES_File_PDF_Splitter

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 - [email protected]

pes_file_pdf_splitter's People

Contributors

pes10k avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.