Solved

Parsing through PDF file and separating pages based on placeholder

Posted on 2013-01-31
2
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

730 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