|  |
 | dynamic pdf documents
|  |
 |  | | Want to create dynamic pdf documents with PHP, but don't want to (or can't) install any of those required modules?
| |  |  |  | | Well we could have the solution.. for you, a PHP class which will allow the easy production of simple pdf documents...
| |  |  |  |
 | try the demo
|  |
 |  | | Try out the demo below, have a read of the pdf document describing the Class, and the download the files and have a go for yourself.
The demo php file which comes with the package (readme.php) is the exact file which was used to create the documentation, so anything you see in there you will be able to do.
| |  |  |  | |
| |  |  |  |
 | documentation
|  |
 |  | | The file readme.pdf contains all of the documentation, it serves triple purpose as the demo file and the testscript. The class download contains everything that you will need to produce this file.
| |  |  |  |
 | downloads
|  |
 |  | | Try this (readme.pdf) to read the documentation and see sample output.
and this to see some of the output from the table creation code.
| |  |  |  | | Download the zip file which contains the class, sample, and the required font metric files.
| |  |  |  | | or just this zip file for everything but the font files, if you had had a previous version.
| |  |  |  |
 | events/news
|  |
 |  | | 17 June 2006 Ahh.. I have been away from this project for some time, my real job has been very busy - however I find myself motivated to move it along a little bit - expect to see some progress coming up. Unfortunatly my opinion is that the current code base suffers from a lot of features having been added to an unstable base, and I intend to do a lot of remeadial work. This may require a rebuild of some of the core functionality, but the result should be worth it. I intend to fix problems with fonts, so that all character spacing are calculated correctly. Tof adjust the way that fonts can be changed to allow mid-line font and size changes, and to modularize the presentation a lot more so that such things as images in tables etc. are possible. I apologise to all those that have written to me over the last years and have got no reply - sometimes I have simply not had time, or more often they go unnoticed amongst the mountains of spam mail that the publically knowm email addresses and those associated with the mailing list generate - a tide which contributed to my lack of time spent on this project. I am currently working on a script to dissasemble ttf font files, and once it is working I'll present it here and eventually it will be intergrated into the new system (which I hope to make using php5 rather than 4). I expect the class interfaces will be similar, but different in places, if I can make it backwards compatible without comprimising the features of the new system then I will.
Cheers Wayne.
| |  |  |  | | 10 March 2003 I have just uploaded the latest bug release fix, (version 009e), which also contains a donated ezImage function (the downloads links will take you to the new function). As you can see from the frequency of these messages my time on this project is sporadic, and I often get so many emails that if I try to answer them all then I end up with no time to spend on the project itself.. I have been in bug-fix only mode for a while, and am almost out of outstanding issues. To cut down my emails I would encourage users to seek help on the sourceforge forums, note that I do monitor them myself and will chip in with my 10c worth when it is worthwhile. I am also going to try and make the documentation more readable (perhaps an html version) as from some of the emails that I get it is obviously too hard to find things in the manual. I have also just made a new forum for users to share code extensions, as I think I have been an inhibiting factor in this loop for a while.
| |  |  |  | | 13 January 2003 My apologies to all that have sent me mail, since getting back from holiday I have been too busy on other projects to spend time on this one (although it is my favourite, domestic concerns leave it at the bottom of the pile). There is quite a backlog of emails, which I will process on a first in first served basis, hopefully over the next few weeks.
| |  |  |  | | 19 December 2002 Please note that I will be on christmas (and summer) holidays from 21st december through to 4th january, your emails will be ignored during that time not due to rudeness but simply because nobody is home.
| |  |  |  | | 22 November 2002 yet another minor re-release, main bug-fix is for when applying encryption to documents of many pages in length - they would be blank when there were more than 256 objects in the document. Current version is now 009c, the download links should point to that one.
| |  |  |  | | 11 November 2002 a minor re-release to remove a warning which would appear under certain circumstances. I have also started upgrading the in-code documentation. Current version is now 009b, the download links should point to that one.
| |  |  |  | | 10 November 2002 Well it is amazing how time flies, I have been promising the full release of 009 for some time, but the list of things that I had to do to get it out there just seemed to be getting longer and longer. Even now I have been unable to add everything that I have promised people that I have done, and I have even not managed to integrate some really cool extensions that have been sent to me. However I have decided to release anyway, I stopped adding new features, and got the documentation up to date (though it may not be all that readable in places). The download links above should allow you to grab the latest and greatest - fear not that I am still working on this occasioinaly, though as the project gets bigger the incremental improvements seem less and less - though the main slow up this year has been my limited free time - unfortunatly something that is not likely to change in the near future. I thank those of you that have written in with constructive comments, and thoughts (not just demands for features). I have tried to reply to almost all the emails that I get (rude feature demands are now pretty much being ignored), if I have forgotten to write back to you, then please accept my apologies, sometimes some emails slip through the cracks. So check out the doco for the new features - there are some cool ones, my favourite is the transaction support, which allows you to try stuff out, then rewind to a previous point and try again.
| |  |  |  | | 10 November 2002 A number of the features of this class have been developed for use within the company that I work for on a regular basis - they have been very kind in allowing me to release all of this into the public domain, so if you are reading this and are looking for an excellent enterprise grade search for your company, please consider checking out sli-systems...  http://www.sli-systems.com/
| |  |  |  | | 13 Jun 2002 I have been working on release 009, but other requirements on my time have meant that it is taking longer than I have intended, I have decided to pre-release the code as it stands, though there is no new documentation for it yet, most importantly it fixes a bug with version 008 which meant that images would not work when encryption was turned on. There is also functionality there for PNG support and internal document links - I am planning to include a few more things and get the documentation sorted out, but it is probably going to be a couple of weeks, hence this pre-release. pdfClasses_009_pre.zip. Note that this zip file only includes the two class files.
| |  |  |  | | 6 May 2002 Added a page for user contributions, the first being a class extension to make labels.
| |  |  |  | | 24 April 2002 Version 008 release. Quite a few things, but significently: callback functions which allow users to make more powerful use of the class, document encryption, page inserts - check the readme.pdf for more details.
Also am starting to get sourceforge going a bit better, you can visit the project here.
(these download files were modified 30 april to include missing data.txt file).
| |  |  |  | | 4 March 2002 Version 007 release. This contains a number of bug fixes, some enhancements to the ezTable functionality, and the ability to use and include both type 1 postscript fonts and TrueType fonts. I think this should make this class a lot more useful for people.
| |  |  |  | |  http://sourceforge.net/projects/pdf-php/
7 February 2002 I have just put this project into SourceForge - still figuring out exactly how that works - managed to stuff up the cvs already I think. I thnk it is called "pdf-php".
| |  |  |  | | 2 February 2002 Finally a new release! Version 006, you can now use <b> and <i> in your documents to do some text formating. The table creation has been enhanced so that the widths of the table can be specified, and the cell contents will all wrap to accomodate (and don;t scoff this was not simple). There are a few other little things too, along with improved documentation (including more examples) and some bug fixes - hopfully I have removed more bugs than I put in.
so get it here or, below if you need the fonts too (all new users). This version will need to re-write all your php_<font>.afm files, so just beware of that.
Also note that I am in the process of setting up a SourceForge project for this class, so then anyone that wants to contribute will be able to do it very easily.
| |  |  |  | | 19 Dec 2001 A few more bug fixes (version 005d), there were some warnings appearing when running readme.php with 4.1.0.
| |  |  |  | | 17 Dec 2001 A few more bug fixes (version 005b), trying to get rid of all the warnings which appear now and again, if you get a warning then please let me know and I'll fix it.
This version also includes beta code for a templating system for which I have still not finalized the architecture. But there is an explanation and a demo on the site now, so feel free to have a look.
| |  |  |  | | 15 Dec 2001 A bug fix has been found for the printing documents with images to postscript printers problem - this was found with some innovative debugging by Ravi Ranganathan (many thanks!). I have upgraded the version 005 downloads the reflect this, but here is just the changed file if it is all you want.
| |  |  |  | | 11 Dec 2001 A minor release (005, from the downloads section below), a few bug fixes to and the inclusion of functions to draw arbitrary bezier curves.
Note that I (nor anyone else) have not yet found a solution (or a cause) to the problem with printing from acrobat 4.0 to some printers.
| |  |  |  | | 7 Dec 2001 Possible problems!, it appears that there may be some
issues with printing images from the last two versions of the class - at
the moment the limits of the problem are not clearly defined, but it affects
at least win2k/acrobat reader 4.0, acrobat full... investigation continues..
though please send in your error (or success reports) as I don't have a test
suite to try out all these possiblities.
| |  |  |  | | 7 Dec 2001 Another release (004), enhancements to both classes, see readme.pdf for details, but basically page numbering in ezpdf, and line widths in the base class.
classes or classes and fonts
The readme.pdf has been updated with the new functionality (for both classes).
Also there is now an official mailing list for announcements etc. email to ******* to sign up.Note: June 2006, This mailing list has become so clogged with spam that it is unusable - I am removing this address and will be coming up with a new system the next time there is something to announce, which hopefully will be the new TTF class.
| |  |  |  | | 6 Dec 2001 The new Version is here (003), this includes some enhancements to the basic pdf class (such as loading images straight from jpeg files, without GD support), as well as en extension class called "ezpdf" which allows the simple insertion of text, and the quick production of tables. This simple class takes care of all the page wrapping for you, as well as including text justification.
Download the classes and test files or
the classes, test files and the fonts (this is the one for you if you have not downloaded before).
The readme.pdf has been updated with the new functionality (for both classes).
Though also check out the table creation example.
| |  |  |  | | 29 Nov 2001 the to-do list has been created, I have filled it out with
all the things that I have had scribbled on the piece of paper by my keyboard (so not a complete or well thought out list).
| |  |  |  | | Coming soon! A list of pending features, including line widths, table
printing extensions and improved imaging. There will also soon be a mailing
list notifying enhancements.
| |  |  |  | | 24 Nov 2001 I have updated the class to fix a bug which prevented accented characters from working.. these should be functining now (though has only been tested on windows, if you have downloaded the full class already, then updating just the class file will be enough, otherwise download the class and data files.
| |  |  |  | | 23 Nov 2001 I have added a small FAQ to answer
some of the questions that I am getting.
| |  |  |  | | 9 Nov 2001 - release of the first version, 0.01, hopefully this will be useful.
| |  |  |  |
 | feedback
|  |
 |  | | Development will be continuing on this little project, please contact me with any feedback on this class: address removed due to huge amounts of spam to it making it unusable - I'll be replacing it with another (and will only have the address in an image) once there is something to announce again.
| |  |  |  | | This is a free product, and I am feeling good about it being so, but I would hate to think that anyone was wracked with guilt through getting it for nothing, so if you feel like donating to the cause, follow the link below - I would have to admit that I am mercenary enough that donations would probably guarantee a steady flow of development even after the novelty wore off..
| |  |  | |