History of changes
2.7
2004-01-07
- Introduction of the (experimental) importer extension.
- Fixed print_r() problems that were causing errors in older versions of PHP.
2.6
2003-12-08
- Added ->debug and ->dbs and documentation to improve transparency.
- Added initial (experimental) packer extension.
- Removed documentation for obsolete functions ... I don't think anyone is
using a 1.x version anymore.
2.5
2003-08-29
- Added png_embed()
- Altered sprintf() statements to work around a bug in php 4.3.2.
This does not appear to degrade functionality with other versions
of php.
2.4
2003-07-05
- The status of the 2.x series has been upgraded to stable.
- Fixed bug in ->template->place() where the string '0' would not
be placed.
- Improved ->enable() to allow generalized extensions to be written
without hacking phppdflib.class.php. Added documentation on
extension writing.
2.3
2003-06-05
- Updated documentation on headers and troubleshooting.
- Added hex triplet support to ->get_color().
- Pages now remember the margins they were created with and objects
painted to a page use the page's margins, not the current default.
- ->strlen() now uses default values if not specified.
- ->strlen() now deals with tabs gracefully.
- Template example script now has more interesting examples.
- Overall documenatation audit and update.
- ->pop_error() now returns false if there are no messages on the stack
- ->template->place() now returns false if any errors are encountered
during template placement, including overflow of pfields.
2.2
2003-05-07
- Fixed logic error in right/center alignment for paragraphs
(merged from 1.17).
- Fixed text encoding problem so non-US characters will display
(merged from 1.17).
- Correct scale/rotation error in example.php when calling image_place()
(Calling syntax has changed to be consistent with other functions)
- Added examples of place_circle() in example.php
- changed enable_chart() to enable('chart')
- Added template exension, documentation, and example file.
1.17
2003-02-09
- Fixed logic error in right/center alignment for paragraphs.
- Fixed text encoding problem so non-US characters will display.
- Fixed bug where creating a PDF with no images or fonts created a corrupt
resource dictionary (merged from 2.1).
- More isset()s to remove "undefined index" warnings.
- Fixed broken example-columns.php.
2.1
2003-02-03
- Noteworthy documentation additions (basics and bug-reporting
sections).
- Updated example files so they work correctly with API
changes.
- Lots of work done to get the defaults system actually
working as one would expect it to.
- Fixed bug where a PDF with no images and no fonts would
generate a corrupt resource dictionary
- Bug in compression logic resolved.
- There are now seperate parameters for text drawing mode
('tmode') and shape drawing mode ('smode'). Setting 'mode'
sets both parameters.
- Many, many changes to remove Notices when php runs with
error reporting set to E_ALL (don't know if I've got them all yet).
- Initial version of the charting interface added, this is very
experimental at this time. I'm open to feedback!
- A new, spiffier method for specifying colors has been implemented.
The ->get_color() method was created as a result.
- Moved examples to examples directory and modified as needed.
- Glyph widths moved to strlen.inc.php to reduce footprint when
strlen() is not used (conditionally included).
- Unused parameter removed from ->_streamify() and ->_makedictionary().
2.0
- Added draw_circle()
- Default system added, all functions should fall back to user-defined defaults if
a parameter was not specified. The set_default() function was added.
- Added basic error reporting: added error_array() and pop_error().
- Removed image_raw_place().
- Level 9 compression is now the default.
- Removed set_compress(), compression is now set by generate().
- Removed all band and column functions.
- General code cleanup and reorg: some functions were de-functionalized and added inline to the
generate process.
1.16
- Further improved
strlen
performance (less than 1%).
1.15
- Replace depreciated &$ function calls.
- Added isset() checks to remove warnings.
- When compression is enabled, all streams are compressed, even if another filter (such as /DCTEncode) had previously been applied - previously, only unfilter streams were compressed. This reduces file sizes in files with embedded JFIF (jpeg) images.
- word_wrap() function fixed.
- Added 'align' to parameters for paragraph placement.
- Changed text encoding to PDFDocEncoding because it makes for reliable results from strlen() function.
- Added \x0a after %%EOF: Ghostscript expects this, other viewers might as well. Technically it's within spec either way.