[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Parsing through PDF file and separating pages based on placeholder

Posted on 2013-01-31
2
Medium Priority
?
185 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 2000 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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
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 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…
Suggested Courses
Course of the Month19 days, 3 hours left to enroll

834 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