473,382 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Reading PDF Files with PHP

This is probably a more appropriate location to post this question. I
should have know that since I've found most of the other PHP/PDF
information contained in this group.

Here's my issue...I will from time to time receive 4 - 5 PDF files into
a directory; I want to be able to schedule a task which will pick up
these 4 - 5 PDFs, read through them and then generate 1 pdf. Creating
PDFs in PHP is obviously fairly easy, however I haven't found anything
yet that will actually read the PDFs so that I can then place that
content into this new single file. Can this be done with PHP. Any
suggestions/help would be greatly appreciated.

Thank you in advance.

Jul 17 '05 #1
2 2770
http://www.plsgoogleit.com/

<du***@inhs.org> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
This is probably a more appropriate location to post this question. I
should have know that since I've found most of the other PHP/PDF
information contained in this group.

Here's my issue...I will from time to time receive 4 - 5 PDF files into
a directory; I want to be able to schedule a task which will pick up
these 4 - 5 PDFs, read through them and then generate 1 pdf. Creating
PDFs in PHP is obviously fairly easy, however I haven't found anything
yet that will actually read the PDFs so that I can then place that
content into this new single file. Can this be done with PHP. Any
suggestions/help would be greatly appreciated.

Thank you in advance.

Jul 17 '05 #2
<du***@inhs.org> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
This is probably a more appropriate location to post this question. I
should have know that since I've found most of the other PHP/PDF
information contained in this group.

Here's my issue...I will from time to time receive 4 - 5 PDF files into
a directory; I want to be able to schedule a task which will pick up
these 4 - 5 PDFs, read through them and then generate 1 pdf. Creating
PDFs in PHP is obviously fairly easy, however I haven't found anything
yet that will actually read the PDFs so that I can then place that
content into this new single file. Can this be done with PHP. Any
suggestions/help would be greatly appreciated.

Thank you in advance.


Reading from PDF files is almost impossible. You can extract bits and piece
from one and make small changes here and there. There's no way for a
computer to read the document in its entirety because the logical structure
of the text isn't there. What a PDF file contains is essentially
instructions to the printer--that is, the visual representation of the
document. A paragraph in a PDF, for instance, is just a series of moveTo(72,
72), printLine(text), moveto(72, 144), printLine(text) commands. To get back
the original paragraph of text you would need OCR-like artificial
intelligence.

What IS possible is stitching a number of PDF files into one. It would just
be a matter of reading in the PDF objects (without actually decoding the
content sterams), writing them to a new file, then update appropriate
reference tables. If you have the inclination, go the Adobe's web site and
download the reference manual.
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Olivier Maurice | last post by:
Hi all, I suppose some of you know the program Redmon (type redmon in google, first result). This neat little tool allows to hook up any functionality to a printer by putting the file printed...
19
by: Lionel B | last post by:
Greetings, I need to read (unformatted text) from stdin up to EOF into a char buffer; of course I cannot allocate my buffer until I know how much text is available, and I do not know how much...
1
by: Magnus | last post by:
allrite folks, got some questions here... 1) LAY-OUT OF REPORTS How is it possible to fundamentaly change the lay-out/form of a report in access? I dont really know it that "difficult", but...
6
by: Rajorshi Biswas | last post by:
Hi folks, Suppose I have a large (1 GB) text file which I want to read in reverse. The number of characters I want to read at a time is insignificant. I'm confused as to how best to do it. Upon...
2
by: nnimod | last post by:
Hi. I'm having trouble reading some unicode files. Basically, I have to parse certain files. Some of those files are being input in Japanese, Chinese etc. The easiest way, I figured, to distinguish...
7
by: jccorreu | last post by:
I've got to read info from multiple files that will be given to me. I know the format and what the data is. The thing is each time we run the program we may be using a differnt number of files,...
6
by: arne.muller | last post by:
Hello, I've come across some problems reading strucutres from binary files. Basically I've some strutures typedef struct { int i; double x; int n; double *mz;
10
by: Tyler | last post by:
Hello All: After trying to find an open source alternative to Matlab (or IDL), I am currently getting acquainted with Python and, in particular SciPy, NumPy, and Matplotlib. While I await the...
5
blazedaces
by: blazedaces | last post by:
Ok, so you know my problem, java is running out of memory reading with SAX, the event-based xml parser intended more-so than DOM for extremely large files. I'll try to explain what I've been doing...
4
by: Miner Jeff | last post by:
Hello, I have a basic question about reading files. I have several data files where the filenames are identical except for a short (3 character) prefix. I inherited this code and the person who...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.