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
Solved

Parsing through PDF file and separating pages based on placeholder

Posted on 2013-01-31
2
173 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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 dynamically set the form action using jQuery.

808 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