Solved

Parsing through PDF file and separating pages based on placeholder

Posted on 2013-01-31
2
163 Views
Last Modified: 2013-02-07
I have a large amount of documents that are getting scanned into a folder via a high capacity scanner.

I' have created a barcode generator in PHP that are placed manually between each document.

I'm looking for a solution in PHP that would open this large PDF file, and at each barcode page, create a new PDF file based on the timestamp.

The end result would hopefully be me having 10 separate files with the barcode page being the first page in each document, rather than my one big document.

Thanks in advance.
0
Comment
Question by:t3chguy
2 Comments
 
LVL 5

Accepted Solution

by:
Pyromanci earned 500 total points
ID: 38864852
Unfortunately since a pdf file is binary data there is no internal way for php to look for a specific marker.  You would have to use a 3rd party library to handle it. Take a look at:
http://www.fpdf.org/
http://www.setasign.de/products/pdf-php-solutions/fpdi/

Those 2 should, in theory at least, do what you want.
0
 
LVL 1

Author Closing Comment

by:t3chguy
ID: 38865439
Thank you
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now