Purchase Ad Space
Advertise on TUFaT.com, a top 10,000 website (Alexa.com)
Photographers & Artists:
Display your portfolio with style using a Flash Image Gallery.
All New FlashChat!
Read More. Check out the new FlashChat Documentation.
Translate to...Übersetzen Sie zum Deutschen Traduza ao português Traduisez au Français Traduca ad italiano Traduzca al español Translate to Japanese Translate to Chinese Translate to Korean
php/mysql scripts

Buy All Scripts
Buy All Featured Scripts


FlashChat

Customizable Flash Chat Room and Live Support system for your PHP/MySQL-enabled website. Try it now!

Flash MP3 Player and Component

Add an MP3 player to your website, or to your Flash projects!

Skinnable Flash Web Radio Applet

Add an XML-controlled Flash web radio player to your website quickly (no Flash programming needed!). Choose from 11 web radio skins (adapted from Winamp).

osDate

Free, open-source dating system.

GPix Pixel Ad Script

A free million pixel advertising script, based on the milliondollarhomepage.com concept.

GLink Word Link Script

A free word link ad script, similar to other more expensive word link scripts.

html2ps and html2pdf

Convert HTML to PostScript or PDF. Supports over 500 HTML and CSS tags and properties.

Flash Video Component

Add FLV video to any of your Flash projects in seconds.

MyCard

Design Postcards and Business Cards with a sleek Flash interface, and preview them in a protected PDF document.

TUFaT

Create your family tree online, and share it with family members all over the world.

Gallery by Dali

The most powerful gallery yet. Highly customizable, with over 50 configuration options.

EasySite

Website Content Management, using DHTML layers for maximum design flexibility.

FlashCard

Create greeting cards in Flash, and email them to your friends all over the world.

FlashMaps

This is a clone of FlashEarth, the popular Flash-based mapping system that combines elements of many online mapping tools into a single interface.

FlashArea

Flash WYSIWYG textarea replacement

phpFlashMyAdmin

Flash replacement for phpMyAdmin. Manage your MySQL database without any page refreshes.

Audio Video Module Pack for FlashChat

Add A/V functionality to FlashChat (requires Flash Media Server)

FlashReport

PDF Reports for MySQL, with a sleek Flash interface (formerly MyPDF).

Inspirations

Share your poetry and stories online, and allow others to contribute. Includes several advanced templates.

Stock Applets

Stock Tickers, Currency, and Forex applets that interface with Yahoo! Finance.

FlashBB

Flash bulletin board built on the phpBB and vBulletin engines (a Flash skin for phpBB or vBulletin). Now updated for the latest versions of both phpBB and vBulletin!

Datagrid Extensions

Enhance the Flash Datagrid Component. Includes Flash 6 and Flash 7 versions, with examples and API.

MyBackup

Database and Web Backup System

osDate Skins (51)

Custom designed skin files.

GPix & GLink Skins (10)

Custom designed skin files.

Flash Video (7)

Component and Applets that play Flash Video (.flv files)

FlashChat (6)

FlashChat, chat add-ons, and chat skins

Fonts for FlashCard and MyCard (10)

Expand FlashCard and MyCard with over 300 fonts!

Stock/Financial Flash applets (10)

Small Flash programs for your business website.

Flash RSS and Atom Readers (14)

XML-based RSS and Atom Readers for your website

Flash Applets (24)

Small Flash programs to enhance your website.

Flash Menus (14)

XML-based Flash menus for your website

Advanced Flash Systems (9)

Flash systems for your website

Flash Image Galleries (12)

Display your portfolio with style!

Flash Components (14)

Flash UI Components, including the DataGrid Extensions

PHP/MySQL Systems (8)

Family Tree Builder, Website Content Management, Inspirational Message System

FREE / GPL Scripts (6)

100% free and open-source software for the PHP community

Google Maps Systems (3)

PHP systems that interface with Google Maps


License & Copyright Information


Support Forum


HTML for Beginners


Java Instructional Pages


PHP Documentation


Search

html2ps and html2pdf Change Log

Return to the html2ps and html2pdf information page.


17 Apr 08

Version 2.0.43 has been released with the following fixes:

Fixed: space could be added after some non-whitespace symbols immediately followed by inline boxes.

Fixed: under certain circumstances custom characters were ignored in CSS3 margin box content

Fixed: some temporary files were not removed when using fpdf output method


28 Mar 08

Version 2.0.42 has been released with the following changes:

Fixed a couple of minor errors in line breaking algorithm;

Removed limitation on the number of "custom" character in generated PDF files;

Minor coding style cleanup.


15 Mar 08

html2ps and html2pdf 2.0.41 has been released! This is a stable version.

The following updates are in this version:

FAQ / documentation updates

Library version is displayed on the demo web interface page.


22 Feb 08

html2ps/pdf version 2.1.12 has been released with a new PDF protection feature added.


17 Feb 08

The new beta 2.1.11 version has been released. Changes in this version:

Implemented Unicode-compliant line-breaking algorithm


07 Feb 08

Version 2.1.10 of the developmental version has been released! In this update:

- Absolute-positioned box layout bug fixed;

- CSS styles now are applied to the text list markers;

- One more CSS parsing bug fixed & test case added.


12 Jan 08

Source update 2.1.8:

* Minor fixes in CSS parser;
* Fix in page layout algorithm;
* Minor test suite update.


27 Oct 07

Version 2.0.39 has been released with the following fixes and changes:

Change: minor documentation/FAQ update

Fixed: page break issue in tables affecting tables with very small amount of content in last column

Fixed: warning message while doing PS output with no font metric files available


14 Oct 07

Version 2.0.38 has been released!

Fixed: HTML files referring to the same image several times were causing PHP error (introduced in 2.0.37)


07 Oct 07

2.0.37 has been released with the following fixes:

Fixed: file protocol restriction could work incorrectly under Windows

Fixed: upper-case protocol schemas were handled incorrectly by default FetcherUrl class

Change: JPEG images no longer converted to PNG, decreasing overall PDF size


15 Sep 07

Version 2.0.35 has been released with the following fixes:

Fixed: media names are completely case-insensitive now (see CSS 2.1 p.7.2)

Fixed: inline controls (text and buttons) with empty value caused PHP errors (introduced in 2.0.33)

Fixed: bottom margin / border values were ignored for inline elements


26 Aug 07

Script update 2.0.33 has been released with the following fixes:

Fixed: error in demo script on PHP 5 with curl extension installed

Fixed: nested inline elements inside pre caused extra line breaks

Fixed: bottom margins were incorrectly collapsed when container had padding / borders and contained more than 1 child block element


19 Aug 07

Script update 2.0.32.

Fixed: tables having constrained height smaller than overall row height were not expanded


19 Aug 07

Script update 2.0.32.

Fixed: tables having constrained height smaller than overall row height were not expanded


29 Jul 07

2.0.30 update: (PHP4-specific) Generated TOC elements were not clickable.


22 Jul 07

html2ps/pdf 2.0.29 has been released.

Fixed: empty pages could appear in document when html2ps run in batch mode

Experimental update 2.1.5 (reduced memory requirements) has also been released.


02 Jul 07

html2ps/pdf version 2.0.27 has been released with the following fixes:

Fixed: number of characters not found in standard encoding vectors was limited to 255 (limit on total number of different _symbols_ still exists)

Fixed: tables with "fake" cells could result in unexpected page breaks

Fixed: minor sample updates

Fixed: missing TTF files may result in mysterious PHP errors during the conversion process

Fixed: font family names in mixed case could be interpreted incorrectly in 'alias' directive, making this typeface unavailable

Fixed: margin-XXX subproperties were ignored in @page context


27 Jun 07

Version 2.0.26 has been released with the following fixes:

Fixed: media size / margin CSS properties support was broken in recent versions

Fixed: PDFLIB-related errors (output method seems broken in 2.0.21+)

There were also minor documentation/FAQ updates for the new version.


09 Jun 07

Version 2.0.24 has been released with the following changes and fixes:

Change: script attempts to update pcre.backtrack_limit automatically

Change: check for pcre.backtrack_limit added to systemcheck.php

Fixed: better page breaking inside table cells with vertical empty spaces

Fixed: removed debugging 'die' accidentally left in 2.0.23 code


01 Jun 07

html2ps/pdf version 2.0.23 has been released with these minor changes:

Fixed: ##PAGE## and counter(page) gave incorrect page numbers

New: support for 'type' UL and OL attributes was added


27 May 07

Version 2.0.22 has been released.

Fixed in this version: html2ps could loop indefinitely on documents containing less than one page and at least one table under certain circumstances


22 May 07

2.0.21 has been released with the following updates:

Fixed: a number of issues related to recent changes in dynamic media definitions and page breaking

Fixed: nested ordered lists were numbered incorrectly


08 May 07

Version 2.0.20 has been released with the following fixes and new features:

New: media margins may be changed from style definition using 'margins' property in @page rule.

New: media size and orientation may be changed from style definition using CSS 3 'size' property in @page rule.

Fixed: non-ASCII characters in TOC items could result in XML parser errors

Fixed: checkboxes were incorrectly rendered inside tables


06 May 07

html2ps/pdf 2.0.19 has been released with the following new features and fixes:

Fixed: style and link tags were ignored when written in upper case

New: table of contents feature has been added

Fixed: several notice messages when PHP 4 DOMXML functions were used

Fixed: 'missing font' issue when zlib is not installed

Fixed: documentation fixes / updates


29 Apr 07

2.0.18 has been released with a couple of very minor updates:

Change: array of calculated page heights is passed to
'before-document' event handler

Fixed: 'configure' method always overwrote configuration
variables with their default values


07 Apr 07

Version 2.0.17 has been released with the following fixes:

Fixed: CSS Properties in UPPER and MiXEd case no longer ignored

Fixed: backslash+newline sequence was not ignored in CSS strings

Fixed: newlines were ignored in generated content in page margin boxes

Fixed: backslash escapes were ignored in CSS 'content' property


01 Apr 07

html2ps/pdf version 2.0.16 has been released, with the following fixes:

Fixed: table cells spanning several rows in some cases could be ignored when calculating table width

Fixed: table cells with width constraints spanning several columns could have their width calculated incorrectly

Fixed: tables nested in other tables could overflow containing cells


23 Mar 07

html2ps/pdf 2.0.15 has been released with the following small fixes:

Fixed: more tolerant processing of LINK href attribute allowing unescaped spaces

Fixed: CSS rule definitions containing only one property
without trailing semicolon were ignored


18 Mar 07

html2ps/pdf 2.0.14 has been released with the following new features and fixes:

New: support for custom automatically generated encoding vector in PDFLIB output

Fixed: several fixes in CSS processing; HTML entities processing no longer affect CSS code; semicolons inside quoted strings no more treated as end of property definition.

Fixed: "Call to a member function getPropertiesSortedByPriority() on a non-object" error (affected all fresh installations of v.2.0.12 and v.2.0.13)


05 Mar 07

html2ps/pdf version 2.0.13 has been released with the following fixes and improvements:

Fixed: 'display: block' set for body box caused body background to be rendered incorrectly

New: support 'background-attachment' CSS property for body boxes

Fixed: batch processing mode did not work when media had no top and bottom margins

Fixed: images were never rendered as links


25 Feb 07

html2ps/pdf 2.0.12 has been released with the following fixes and new features:

New Feature: API extension for events has been added.

Fixed: broken 'text-transform' support. Thanks to dkrieger for the patch (applied with minor changes).

New Feature: background properties now recognized in page context (CSS3 paged media)


18 Feb 07

html2ps/pdf version 2.0.11 has been released with the following fixes and changes:

Changed: documentation/FAQ updates

Fixed: overflowing frame content was visible outside frame boundaries

Fixed: koi8-r encoding was not supported by PDFLIB out-of-the-box

Fixed: several PHP notice messages

Fixed: border attribute could affect elements after the element with this attribute


04 Feb 07

A minor fixes have been made in the new version, 2.0.10:

Fixed: PHP 4 reference-related notice messages in value.border.class.php

Change: DOCTYPE now is checked by default when conversion is done via html2ps API

Fixed: thin/thick/medium values of border-*-width properties were not supported


24 Jan 07

Version 2.0.9 has been released. Page breaking algorithm was merged with the main branch, and several issues regarging absolute-positioned boxes were solved.


24 Dec 06

An all new html2ps/pdf has been released!

In the regular version 2.0.8 -

Fixed: cell borders set via table 'border' attribute were not rendered if table contained tbody/thead/tfoot tags

Fixed: textarea size was sligtly greater than expected

Fixed: more tolerant to invalid textarea content (unescaped HTML special characters)

New: support for 'pre-wrap' value of 'white-space' CSS property

Fixed: memory leaks caused by circular references and preg_replace_callback + create_function

Change: minor updates in sample files

Change: minor documentation/FAQ updates

Fixed: temporary PDF files were not removed after script completion

New: pages may be fetched via proxy

New: if curl extension is present, it will be used for fetching pages

Fixed: incorrectly calculated width for tables /without/ width constraints containing table cells /with/ constant width constrants


In the developmental version 2.14 -

Fixed: table cells containing font with different sizes no more cause pagebreaks splitting symbols between pages

Change: added page break penalty for breaking inside a block that has a border


18 Dec 06

2.0.7 has been released with the following fixes and changes:

Fixed: whitespaces in justified boxes were placed slightly off the right container edge

Fixed: IFRAMEs with empty SRC attribute value no longer cause html2ps to die with a 'Frame nesting too deep' message

Change: more tolerant 'src' attribute value processing; script attempts to detect un-escaped symbols (i.e. spaces) in path and escape them automatically. Applies to img & input type="image".

Fixed: absolute-positioned tables did not work (PHP Fatal error).

Fixed: cells with borders set via table 'border' attribute always had border width set to zero

Fixed: calculated width value was always zero for relative positioned block elements with percentage width


05 Dec 06

Version 2.0.6 has been released, with this critical bugfix: solution for 'Call to undefined method FlowContext::postpone()' error message while converting documents with floats / relative positioned boxes.


01 Dec 06

Version 2.0.5 has been released! The following fixes have been made:

- fixed-positioned blocks were overprinted several times (2 times on second page, three on third and so on)

- <input type="image"> rendered in interactive forms mode caused Acrobat Reader to crash when used clicks on the image.

- minor documentation/samples updates (deprecated sample data updated)

- font metrics were extracted incorrectly for encoding vectors containing less than 255 characters (in particular, iso-8859-8)

- errors while convering frame-based pages

- redirects counter was not reset after file was fetched

- interactive form elements were printed on incorrect positions on all pages except the first one.

- fixed-positioned blocks nested in other fixed-positioned blocks were printed several times; punctuation marks immediately after footnotes now cannot be wrapped to the next line

- <br/> tags inside fixed-positioned blocks caused PHP errors

- lines contaning note-call boxes could run off the page right side

Version 2.1.3 (developmental version) has also been updated, with the following fixes:

- page break could not be placed on BR tag

- Fixed: minor glitches with line box positioning


25 Nov 06

Developmental branch update (html2ps/pdf 2.1.2). Fixes in this update:

Absolute-positioned boxes no more cause page breaks.

Page break routine emitted PHP warning messages when HTML code contained image references.

Minor code cleanup according to issues posted by 'tmcdos' in the forum.


18 Nov 06

Updates have been made to the main html2ps/pdf version 2.0.4:

Fixed: compatibility issue for systems with magic_quotes_runtime=On

Fixed: ##PAGE## / ##PAGES## directives caused PHP warnings when used inside container with 'position: fixed;'

Fixed: minor changes in CSS property handling to clean-up reference-related issues

Fixed: if GD extension is not loaded, script will still convert pages with images

Change: before-document, after-document, before-batch and after-batch callbacks are introduced.

Minor internal changes in Pipeline class (removed duplicate code)

before-page and after-page callbacks are introduced.


Updates to developmental version 2.1.1:

Fixed: orphans/widows CSS properties were ignored

Fixed: page breaks could appear one line box before the expected place due rounding errors


13 Nov 06

Initial release of html2ps/html2pdf with page-break-*, orphan, and widow support. This release is being marked as 2.1.0. If you are already using 2.0.x and you are happy with it, there is no reason to upgrade.

We are seeking testing feedback on 2.1.0, however. Please note any issues in the forum, as usual.


12 Nov 06

Fixed is_executable issue in system requirements checking script under Windows/ISS.

Relative paths should cause no more problems when html2ps/pdf is used with Windows/ISS. NOTE: when script API is used, 'config.inc.php' should be included before any other file.

Fixed 'inherit' value for font/font-size property, which were
interpreted as 'inherit initial value' instead of 'inherit
calculated'.

Some internal changes were made to ease automated testing and pipeline configuration.


29 Oct 06

Minor bugfix/documentation updates (v 2.0.2):

* Change: minor documentation/FAQ updates

* Fixed: tables with several colspans in the same row under certain conditions could cause notice messages

* Fixed: missing support for 'in' CSS unit

* Fixed: missing support for 'pc' CSS unit

* Fixed: non-valid HTML containing table sections with omitted TR tags could result in notices/warnings; tables were rendered incorrectly


22 Oct 06

html2ps/pdf 2.0.1 has been released with the following changes:

Change: added allow_url_fopen check in system requirements checking script

Fixed: FPDF-generated PDF files with embedded fonts could not use more than one font

Fixed: pages with radiobuttons could cause warning messages to be printed

Change: minor documentation/FAQ updates

Change: minor system requirement checking script update (more verbose message instead of "Missing GD extension")

Change: added sample file illustrating passing variable with HTML string to conversion engine

Fixed: in batch mode @page rules were applied to margin boxes only once in the very first file

Change: files generated via the demo web interface in batch mode were named using the URL field. (Changed to 'batch.pdf')


08 Oct 06

The 2.0 developmental version has been updated with the following change: A minor bugfix (header/footer issue reported on the forum) was made, and there was an update to the sample code - some obsolete code was removed.


01 Oct 06

The developmental version of html2ps/pdf has been updated, with several minor fixes that were noted on the forum.

You can download the developmental version from here:

http://www.tufat.com/downloads/html2ps_v2dev.zip


07 Sep 06

The developmental version of html2ps/pdf has been updated with the following fixes:

- 'inherit' value is supported for all CSS properties now
- 'ridge' / 'groove' border style support

The developmental version is now tentatively being called "version 2" of the html2ps/pdf project, due to the large number of structural changes that have been made over the 1.9.x version.


16 Jul 06

A new developmental version of html2ps/pdf, 1.9.7, is now available for download at: http://www.tufat.com/html2ps.php


28 Jun 06

html2ps/pdf has been "downgraded" back to 1.9.4 because too many users were having problems with the 1.9.5/6 releases (these releases had major efficiency improvements).

The system will likely spend about 2 weeks in debugging and testing and then be re-released as 2.0.0 when all the kinks are worked out in the new version. You can download the oldest known stable release (1.9.4) or the "1.9.6 beta", which is still highly experimental.


25 Jun 06

Some memory optimizations have been made to html2ps/pdf, but no new features or fixes at this point. You may wish to try this version if generating large PDFs.


21 Jun 06

html2ps/pdf 1.9.5 has been released with the following improvements and fixes:

Fixed: symbols could cause page breaks to move to unexpected positions
Fixed: empty URL value no longer treated as valid by FetcherURL class.
Change: simple system requirements checking script added to 'demo' subdirectory
Change: basic support for Unicode characters missing in predefined encoding vectors (e.g. Japanese/Chinese symbols)
Change: unicode/PS glyph name mapping updated
Change: minor FAQ/HOWTO additions in htlp files
Fixed: Media size was rounded to integer number of millimetres
Fixed: whitespace/line breaks were not preserved inside the TEXTAREA
Change: added iso-8859-8 (arabic) and iso-8859-6 (hebrew) encoding vectors
Fixed: escape sequences were not supported in 'content' property value.
Change: partial support ("alpha" state) for PNG Image output
Change: partial support ("beta" state) for TTF file parsing
(getting rid of AFM files in FPDF output method)


04 Jun 06

Version 1.9.4 has been released with the following fixes:

* Fixed: HR tag 'color' attribute was not supported

* Fixed: minor header/footer positioning issues

* Fixed: 'em/ex' units in 'top' property were processed incorrectly

* Fixed: Content of table cell spanning several rows was not vertically aligned property in certain conditions


28 May 06

Version 1.9.3 beta has been updated with the following fixes:

* Fixed: absolute positioned box width was incorrecly calculated when users did not set it explicitly via CSS and box had non-zero padding, margins or borders

* Change: minor FAQ updates; some frame-related questions were added

* Fixed: "Call to a member function on a non-object" error for page containing frames when frame content have been trimmed down and hyperlinks were rendered

* Fixed: broken layout for framesets containing more than one frame

* Fixed: several PHP notice messages in frame-related layout routines

* Change: HTML2PS_DIR now calculated always relative to the config.inc.php, ignoring path to the script including html2ps files.

* Fixed: some variables are explicitly declared global now to prevent issues when including html2ps files from objects/methods (Thanks mrtwice99)


03 May 06

The new beta 1.9.3 has been released. In this update, the following fixes and changes have been made:

* Fixed: If body contained a very long floating item without any text after it, the float could be trimmed

* Fixed: TABLE tag without nested TD tags caused an PHP error

* Fixed: 'position: relative' was ignored for inline boxes

* Fixed: minor change in documentation related to headers/footers (FAQ answers were missing)

* Fixed: line-height is not inherited by tables

* Change: BODY margin/padding values behaviour now is similar to browser one (background is rendered inside the margin area)

* Fixed: text lines having line-height set to value less than font size were aligned incorrectly

* Change: minor documentation updates related to the "debug boxes" option

* Fixed: images with non-zero padding/margin or border width were incorrectly aligned vertically with the adjacent text

* Fixed: invalid URLs which could not be parsed by 'parse_url' PHP function now no more cause PHP warnings to be printed; they're just silently ignored

* Fixed: added a workaround for the different behavour of 'parse_url' function on Windows when parsing 'file://' urls with empty hostname (thanks to JensE for noticing and testing this).

* Fixed: under certain conditions content after the page break could not be rendered (thanks to JensE for the test case and contributed code!)

* Fixed: cells having percentage-constrained height could result in errors during the conversion process

* Fixed: percentage constrained rows in the table could give unexpected results if total percentage of the constraint was less than 100%

* Fixed: nested mixed percentage-width and constant-width constrained tables were rendered incorrectly

* Fixed: width-constrained table with minimal content width greater that constrained value were rendered incorrectly

* Fixed: underconstrained tables, containing columns with colspanning cells only, could be rendered uncorrectly

* Change: several test files were removed; WEB INTERFACE FILE WAS MOVED TO 'demo/' SUBDIRECTORY!

* Fixed: relative URLs starting with // were interpreted incorrectly


16 Apr 06

Fixed: minor documentation updates

Fixed: some file paths were constructed without using HTML2PS_PATH variable

Fixed: downloaded files were incorrectly named in Internet Explorer under certain conditions (thanks cpeel)

Fixed: lists having certain combinations of 'text-align' and 'list-style-position' were rendered incorrectly

Fixed: non left-aligned text with non-zero 'text-indent' value was rendered offset to the right

New: added file:// protocol support (API only; not supported in web interface)

Fixed: Many elements were rendered several times in multipage documents, significiantly increasing document size.


09 Apr 06

Fixed: National characters were displayed incorrectly in non-interactive SELECT boxes

Fixed: National characters were displayed incorrectly in non-interactive INPUT type="text" boxes

Fixed: more human-readable error message if 'exec' function fails under 'safe_mode'

Fixed: unescaped >, & and < characters inside attribute values could cause containing tag to be processed incorrectly

Fixed: fixed an incorrect path to Active-Link DOM XML extension.


28 Mar 06

Version 1.9.0 released with the following fixes and changes:

Fixed: added more comprehencive error message if a site to be converted REQUIRES cookies and loops in an infinite recursion

Change: minor additions to FAQ page in "no output" section

Fixed: HTML pages containing <html> tag instead of </html> at the page end were rendered as a blank PDF. Now script is more tolerant to this error.

Fixed: table cells with explicitly set width spanning all table columns could cause table to be rendered incorrectly

Fixed: Batch processing did not clear CSS rules before attempting to process a new file

Fixed: HTTP 406 error in some sites (Accept header now sent in all requests)

Fixed: CSS wrapped in both CDATA and HTML comments was ignored

Fixed: 'us-ascii' encoding in META tag now handled correcly when no 'iconv' extension present

Fixed: check/radio buttons having empty "value" attribute were never rendered as interactive

Fixed: an input element outside a form could cause a PHP warning message (PDFLIB output)

Fixed: a filled circle is drawn inside the radio buttons instead of small cross (FPDF output)

Fixed: anchors without content (for example <a name="name"></a>) were ignored

Fixed: FONT tag support broken in 1.8.2-pre1

Fixed: :before / :after pseudoelement support broken in 1.8.2-pre1

Fixed: percentage height constraint of top-level boxes now based on the page height

Fixed: iframes referring to images instead of HTML are ignored for now

Fixed: Line-Height css property was interpreted incorrectly under PHP 5

Fixed: tables containing several rowspanned cells at different levels were rendered incorreclty

Fixed: nested elements having font-size measured in em/ex units were rendered incorrectly

Fixed: bottom margin of the block box inside the cell element was ignored in non-quirks mode

Fixed: In non-quirks mode CSS dimensions without units should be treated as 0 instead of using 'px'

Fixed: rgb() CSS color declarations in composite CSS properties were sometimes parsed incorrectly

Added: support for BASE tag (specified the base URI for resolving relative URIs in this document)

Fixed: empty STYLE node could cause a notice messages to be printed on some PHP configurations

Fixed: empty 'margin' value could cause PHP warning messages to printed

Fixed: form fields having duplicate names now given unique suffixes (instead of causing script to terminate)

Fixed: input elements outside forms no more cause conversion error (an "anonymous" form is generated automatically)

Fixed: block elements inside fixed-positioned element were placed incorrectly

Fixed: elements having 'id' attribute are treated as valid anchors

Fixed: several problems related local anchors; added some comments to anchor-related routines

Change: configuration file renamed; now it is called html2ps.config and is not treated as hidden by Unix systems

Fixed: percentage values for 'top', 'left', 'right' and 'bottom' CSS properties sometimes caused unpredictable rendering errors

Fixed: PDFLIB license key now can be used without patching the script (thanks to Pletfrog for contributing)

Change: PS Level 2 output

Fixed: included files (images and stylesheets) are fetched using the same protocol as main page instead of HTTP

Fixed: temporary images files were created in /tmp instead of WRITER_TEMPDIR, causing problems in safe_mode

Fixed: spaces around 'dispay' values (like ' block') could cause processing error (thanks to fredlefred for contributing)

Change: script-generated footer/header/watermarks

Change: "Batch" processing feature

Change: Complete support for interactive forms in FPDF and PDFLIB output

Change: Added user-contributed basic authentication patch

Change: config file renamed to 'html2ps.config' (now file is not treated as 'hidden' by Unix-like OSes)

Fixed: support for percentage values for 'top' and 'left' properties of absolute-positioned boxes

Change: several small updates in script API documentation

Fixed: PHP error when fetching image file failed due the network timeout

Fixed: 'bottom' and 'right' CSS property support was broken for fixed-positioned boxes

Change: all HTTP requests now contain fake "Mozilla" User-Agent header, as some hosts do not allow scripts to access content

Fixed: path to PDFLIB fonts directory was calculated incorrectly when $_SERVER['PATH_TRANSLATED'] was not set

Fixed: all 'require' commands moved to 'pieline.class.php' file, so now additional files should be included now if you need to use API

Fixed: PHP 5 object model compatibility problem; pages using CSS subproperties (like 'margin-left' or 'background-color') were rendered incorrectly

Fixed: 'cache' directory permissing check did not test the 'executable' permission.

Fixed: support for 'colspan' / 'rowspan' attributes was broken for 'TH' tag

Fixed: "cannot open AFM file" message now contains reference to "open_base_dir" setting and file permissions


15 Jan 06

New Path version 1.8.1 released, with the following changes...

Added support for interactive text form fields (PDFLIB 1.6)

Added support for checkbox form fields (FPDF)

Added support for radio form fields (FPDF)

Fixed: 'ndash' sybol was rendered instead '-' (minus) symbol in Postscript output

Fixed: many non-latin-1 symbols could have their widths calculated incorrectly in Postscript output

Fixed: images were not displayed inside fixed-positioned elements

Fixed: rectangles drawn using "rect" FPDF output driver method were positioned incorrectly

Fixed: circles (i.e. list item markers) could not be filled in FPDF output

Fixed: circles (i.e. list item markers) were distorted in FPDF output

Fixed: user could not generate a page without a text content using page breaking commands


07 Jan 06

All new 1.8.0 has now been released! In this version...

Several updates in documentation & source code comments

Added support for interactive text form fields

Added support for interactive submit form fields

Fixed: a part of content after the manual page break could be printed on the same page

A0-A3 and A6-A10 paper sized added to the list of predefined media sizes

Lengths given in relative 'em' and 'ex' units were incorrectly calculated for 'background-position' property

Fixed a PHP 5 compatibility problem, causing an fatal error message

TH attributes were completely ignored

Fixed the issue related to printing the text on the page margins inside the fixed-positioned elements

Updated the "custom fonts" HOWTO


24 Dec 05

The script has been optimized for pages contaning a lot of text; speed boost of 10-30% expected.

FAQ updated in the html2ps/pdf documentation.

Fixed: could not be hidden using 'display: hidden'

Fixed: ##page## / ##pages## field alignment problem

Fixed: ##page## / ##pages## fields could be ignored if there was no space before the field

Fixed: elements having 'position: fixed' were drawn several times on the same page

Fixed: elements having 'position: fixed' could cause script to die without any error messages

Fixed: class name confict with Active-Link DOM XML extension


16 Dec 05

Version 1.7.8 released. Some code to handle TYPE1_FONT_REPOSITORY errors more correctly has been added. Also, some problems posted on the forum recently have been fixed.


13 Dec 05

- Several bugs fixed in PS output.

- A few minor bugs in the HTML to XHTML conversion fixed.

- Code has been reorganized, all .ps files stored in the "postsccript" folder.

- Several additions to the documentation and API.


27 Nov 05

Several minor bug fixes & several API classes implemented. User can enable/disable font embedding in FPDF/PDFLIB output (smaller file size with font embedding disabled).

Some fields like page number/total pages have been implemented; they can be used by inserting ##PAGE## / ##PAGES## / ##FILENAME## / ##FILESIZE## / ##TIMESTAMP## commands in the page text. Not documented at the moment.


19 Nov 05

Several small fixes have been made in this version (1.7.5) including -

hyperlinks now rendered correctly on all pages in FPDF output;

fixed the problem with missing text lines near the page break in Postscript output;

added support for 'normal' value of line-height property;

fixed the "Illegal operation inside path" PDF error in FPDF output;

made a workaround for sites responding with a 405 HTTP error in HTTP header request;

added an descriptive error message for the case of missing AFM metrics file in "Compact PS" output;

fixed the problem of IFRAME infinite recursion.


13 Nov 05

This update contains several small bugfixes and new output method - "Compact" PS.

The generated PS files are DSC compatible, 2-3 times smaller than ones generated by the "old" PS output method, and are rendered by printers/ghostscript significiantly faster.

Requires the presence of font metric files on the server, though (usually packed with the Ghostscript installation).


30 Oct 05

The following bugs have been fixed in the most recent update, 1.7.3 -

- viewport.pdflib.php: non iso-8859-1 encoding support

- box.button.php: button content always was treated as iso-8859-1 encoding

- box.text.php: encoding-override directive was broken

- FPDF now renders pages containing national characters correctly

- fixed the problem with incorrectly rendered items having percentage-constrained height inside the table cell

- non-http hyperlinks in generated PDF files now handled correcly

- fixed the problem with justified text in PS/PS2PDF output

- several small PHP5 compatibility issues fixes

- SUB/SUP tags and 'sub' and 'super' value of 'vertical-align' property now processed correctly


22 Oct 05

- improved FPDF output method (in theory, it should work with all pages not containing national characters now; non-ascii characters are still a problem)

- local links inside the PDF file (using <a name=..>)

- elements having 'position: fixed' now may be drawn on the page margins - useful for header/footer drawing

- PS/PS2PDF method now should not draw whitespaces at the beginning of the text lines.


15 Oct 05

All new version 1.7.1 has been released!

This version includes support for FPdf, the popular PDF-generation framework from www.fpdf.org

Now, you can generate PDF documents from URLs even without having Ghostscript or PDFLib installed.

This new version also includes dozens of fixes, and support for high-resolution PDF rendering through Ghostscript.


09 Oct 05

Fixes and changes in this release (1.7):

- Landscape orientation being applied to first page only

- Images were incorrectly scaled when the height or width was set as a percentage

- Several PHP 5 compatibility issues fixed

- NewPage command functionality added (now it works both in PS2PDF and PDFLIB output methods)

- Transparent images were rendered incorreclty when PS2PDF output method and PDF 1.4 were used together

- Partial support for page-break-after CSS property

- Hyperlinks in PDFs generated via ps2pdf

- FPDF output method is now under initial development, and should be ready by mid-November 2005


29 Sep 05

The following issues have been fixed:

- fixed 'text-indent' CSS property caused PS errors in generated Postscript

- fixed ordered lists causing PS errors in generated Postscript

- removed confusing encoding names from index.php (like 'symbol' and 'dingbats')

- removed the "Disable XHTML conversion" option, as it is almost useless and causes a lot of error messages to be written to the error_log

- a little bit more tolerant processing of HTTP responses

In addition, index.php has been added, effectively replacing form.php, as the default page for html2ps/pdf.


21 Aug 05

- Online documentation updated
- Several bugs fixed with PDFLib option


14 Aug 05

* box.select.php: fixed bug 1251864 (PS/PDFLIB) option box width is calculated incorrectly

* box.img.php: fixed bug 1253150 (PDFLIB) IMG Proportional scaling

* box.block.php: fixed bug 1255591 (PDFLIB) Absolute positioned box width

* box.block.php: fixed bug 1255584 (PDFLIB) absolute positioning inside BODY

* box.table.cell.ps: fixed bug 1255612 (PS) 'nowrap' cell width

* table.ps: fixed bug 1255696 (PS) align="center" table are not aligned

* xhtml.utils.inc.php: fixed bug 1255728 (PS) Misplaced TD tag may cause PS error

* html.attrs.inc.php: fixed bug 1255732 (PS) iframes with framrborder="1" cause PS errors

* box.iframe.php: fixed bug 1255740 (PDFLIB) IFRAME tag is ignored

* css.vertical-align.inc.php: fixed bug 1256476 (ALL) valign="center" is ignored

* css.background.inc.php: fixed bug 1256636 (PDF) row background not rendered

* box.button.php: fixed bug 1256631 (ALL) vertical alignment inside buttons

* box.button.php: fixed bug 1256630 (ALL) height CSS property applied to button input


07 Aug 05

* help/calling.html: feature request 1225611 Script parameters are undocumented

* help/calling.html: feature request 1225677 Explanation of 'scalepoints' option

* ps.image.encoder.imagemagick.inc.php: feature request 1248710 Imagemagick image processing support

* css.defaults.inc.php: reature request 1252407 Form elements have plain solid borders

* box.block.php: fixed bug 1247891 (PDFLIB) icorreclty positioned floats

* flow_context.class.inc.php: fixed bug 1249682 (PS/PDFLIB) floats do not expand containing table cells

* html2ps.php: fixed bug 1249959 (PDFLIB) Problem using Active Link DOM XML

* css.border.inc.php: fixed bug 1250123 some CSS border values are ignored

* box.img.php: fixed bug 1250130 (PDFLIB) scaled images are not supported

* css.border.inc.php: fixed bug 1250147 (ALL) 'border-style' CSS property ignored

* form.php: fixed bug 1250738 PS output, "destination" option does not work

* xhtml.tables.inc.php: fixed bug 1250741 (ALL) TH tags ignored

* css.pseudo.align.inc.php: fixed bug fixed bug 1250937 (ALL) incorrect content alignment in nested tables

* css.list-style.inc.php: fixed bug 1250945 1250944 (PDFLIB) list-style CSS property is ignored

* css.list-style.inc.php: fixed bug 1250945 (PS) list-style/list-style-type:none is not recognized

* css.list-style-position.inc.php: fixed bug 1250960 (ALL) list-style-position CSS propery is ignored

* css.list-style-image.inc.php: fixed bug 1250962 (ALL) list-style-image CSS propery is ignored

* templates/missing_gs.html: fixed bug 1251040 (WIN) gswin32.exe causes script to "hang"

* css.background.image.inc.php: fixed bug 1251132 Quoted background-image values are ignored

* box.table.php: fixed bug 1251142 (PS) colspanned columns with constrained widths

* xhtml.utils.inc.php: fixed bug 1251550 Some tags are not coverted to lowercase

* css.defaults.inc.php: fixed bug 1251594 Lists with margin-left:0 are rendered incorrectly (IE like)

* css.border.inc.php: fixed bug 1251606 (PDFLIB) composite values of border-left/right/top/bottom

* box.table.row.php: fixed bug 1251628 (PDFLIB) Contents of column after colspan

* box.input.text.php: fixed bug 1251827 (PDFLIB) input width inside the tables

* css.height.inc.php: fixed bug 1251857 - (PDFLIB) 100% content height results in blank PDF

* css.border.inc.php: fixed bug 1252412 - (ALL) inset style is ignored in 'border' property

* box.table.php: fixed bug 1252463 - (PDFLIB) Table border overlap previous box


30 Jul 05

* box.table.php: fixed bug 1231826 - empty colspan columns are not displayed properly

* ps.image.encoder.stream.inc.php: fixed bug 1221703 - /limitcheck error while rendering postscript

* css.vertical-align.inc.php: fixed bug 1224662 - 'text-top' and 'text-bottom' not supported

* css.pseudo.align.inc.php: fixed bug 1228168 - text-align property applied to block content

* css.font.inc.php: fixed bug 1229878 - composite CSS 'font' property not supported

* css.selectors.inc.php: fixed bug 1235541 - INPUT type attribute is case-sensitive

* box.text.php: fixed bug 1239364 - Text cut-off (similar to bug 1220122)

* fetcher.class.php: fixed bug 1245307 - HTTP responce code 403 causes error

* xhtml.tables.inc.php: fixed bug 1245915 - Misplaced TR/TD tags cause XHTML conversion problems

* fetcher.class.php: fixed bug 1245940 - Malformed URLs cause mystic error messages

* xhtml.entities.inc.php: fixed bug 1245943 - Unescaped ampersants cause errors

* box.table.php: fixed bug 1245990 - align="center" TABLE attribute - width issue

* box.block.php: fixed bug 1246571 - margin: auto issue

* css.height.inc.php: fixed bug 1246625 - (PDFLIB output) CSS percentage height

* css.height.inc.php: fixed bug 1246689 - Row 'height' attribute is ignored

* box.table.php: fixed bug 1246694 - (PDFLIB) vertical-align does not work with 'height'

* ps.image.encoder.stream.inc.php: fixed bug 1246715 - Background images are rendered VERY slow

* tag.frame.inc.php: fixed bug 1247374 - Frame box height is less than expected

* box.null.php: fixed bug 1247404 - Display: none affects siblings?

* css.pseudo.nowrap.inc.php: fixed bug 1247427 - nowrap attribute is applied to the cell children

* css.defaults.inc.php: fixed bug 1247433 - Object/Embed tags issue

* tree.navigation.inc.php: fixed bug 1247461 - display: none cause script to hang

* xhtml.entities.inc.php: fixed bug 1247840 - &#X?? hecadecimal character references are not recognised

* box.img.php: fixed bug 1247849 - Consecutive images are NOT being wrapped.

* box.list-item.php: fixed bug 1247900 - (PDFLIB) Ordered lists are not supported

* box.container.php: fixed bug 1247902 - (PDFLIB) complicated pages causes PDFLIB errors

* css.parse.inc.php: fixed bug 1247911 - @import CSS rules are ignored


24 Jul 05

* box.inline.php: fixed bug 1242411 - PRE tag is not supported

* converter.class.php: fixed bug 1243836 - (iconv) Pages with encoding: utf-8 cause errors

* html2ps.php: feature request 1230933 - Ability do disable HTML->XHTML conversion

* fetcher.class.php: fixed bug 1243837 - (w/o iconv) leading and trailing spaces in encoding names

* css.white-space.inc.php: fixed bug 1243823 - white-space property is ignored

* html.attrs.inc.php: fixed bug 1243821 - nowrap attribute is ignored

* pdf.viewport.php: fixed bug 1243808 - (PDF) Nested lists cause PHP error

* box.table.php: fixed bug 1243810 - Unconstrained table width is calculated incorrectly


09 Jul 05

* templates/missing_pdflib.html: fixed bug 1234176 - Mystic error messages if PDFLIB is missing

* html2ps.php: Fixed bug 1216996 - Security limitations on 'fopen' function can cause problems

* fetcher.class.php: Fixed bug 1235270 - HTTP response code 302 Found causes error


07 Jul 05

* tag.ulol.inc.php: fixed bug 1233993 - OL 'start' attribute not supported

* writer.class.php: fixed bug 1225284 - Mystic error messages in no GS is found

* writer.class.php: fixed bug 1234175 - Mystic error message if 'exec' is disabled


03 Jul 05

* writer.class.php: feature request 1220465 - PDF now can be generated natively using PDFLIB

* writer.class.php: feature request 1230338 - PDFLIB dynamic loading using 'dl'


30 Jun 05

* text-align.ps: fixed bug 1230159 - Problems with 'text-align: justify' + 'text-indent'


19 Jun 05

* treebuilder.class.php: fixed bug 1218439 - 'ActiveLink xml parser returns standard XML entities as-is'

* footer.ps: fixed bug 1220122 - 'text is cut-off at the end of page'

* writer.class.php: new - basic PDFLIB rendering support

* footer.ps: fixed bug 1214217 - 'Floating items cannot span more than one page'

* tag.ulol.inc.php: fixed bug 1218398 - 'OL html tag is not supported'

* form.php: fixed bug 1220121 - 'Bottom margin value is ignored'

* css.margin.inc.php: fixed bug 1221681 - 'Class ... not found' errors when running under PHP 5

* writer.class.php: fixed bug 1221776 - script dies with mystic error message when PDFLIB is not present

* css.list-style-type.inc.php: new support for 'decimal', 'decimal-leading-zero', 'lower-roman' and 'upper-roman', 'lower-latin' and 'upper-latin', 'lower-alpha' and 'upper-alpha' values of 'list-style-type' property


06 Jun 05

* box.select.ps: fixed bug 1224157 - Text do not fit in SELECT boxes

* box.select.ps: fixed bug 1224154 - SELECT tag text cut-off

* footer.ps: fixed bug 1224139 - Multi-page documents are not displayed properly

* box.text.php: fixed bug 1223900 - Undefined property: default_baseline

* css.list-style-type.inc.php: fixed bug 1223899 - "undefined constant" notices when E_NOTICE is enabled


06 Jun 05

* fetcher.class.php: feature request 1187268 - encoding now detected using HTTP headers

* html2ps.php: feature request 1229139 - open result in the browser window

Notice: 'tofile' parameter have been renamed to 'output' parameter; default script
behaviour have changed to display result in browser window instead of providing the file do download.
You can get old-style behaiour by setting 'output' to '1' value.


26 Feb 05

updated system to allow PDF output, as well as landscape page orientation


19 Jan 05

Version 0.1 beta released!