Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorIanBack
    • CommentTimeApr 21st 2010
     
    Version 4.5 has improved support for SVG images and a few bug fixes.

    You can download from >>>>>  here

    Please see the CHANGELOG.TXT file included with the downloaded files for more details of bug fixes. See below for further notes on the release.

    Upgrading
    Please read the on-line manual on Upgrading to 4.5.

    New Features
    The main change in 4.5 is the improved class for importing SVG images. (See details below)

    Font files
    Some bugs in the "makefonts" utility caused some errors in the files produced for embedding font subsets. Most of these are not detectable, because it only affects "hint" information which is not used when viewing the PDF file (I have yet to find one!).
    All the font files used for embedding font subsets (the .dat and .dat.php files in /unifont/ folder) have been re-generated. Download them if you are having problems with any fonts - otherwise, you probably don't need to bother.

    Minor Enhancements
    • If keepColumns = true (i.e. disable readjustment of column length), mPDF will now reproduce table header/footer rows in each column.
    • A number of changes to improve processing time. [Thanks to carlholmberg - see thread]
    • JPG files with header marked as "progressive DCT-based JPEG" are now supported.
    • Configurable variable (config.php) $dpi can be set to vary size interpreted from "px" values in HTML/CSS.
    • Support added for "ex" as a size value.
    • Configurable variable (config.php) $watermarkImgAlphaBlend will determine how watermark images will blend with underlying objects.


    Bug fixes
    • Make-fonts utility : makefonts/makefonts.php (All font files have been updated)
    • Table header of only one column width - not printing right border
    • WMF and SVG images not rotating correctly to 90 or -90 degrees
    • Using templates, error if imported doc contains templates itself


    Updated Files
    • mpdf.php
    • config.php
    • classes/svg.php
    • makefonts/makefonts.php
    ALL subset font files (/unifont/ .dat and .dat.php files), and all garuda and norasi files

    New config variables
    • $this->watermarkImgAlphaBlend
    • $this->dpi

    BACKWARD COMPATIBILITY
    All but one changes in mPDF 4.5 are fully backwards compatible.
    The configurable variable $this->watermarkImgBehind was introduced in v4.4 and was unintentionally set to TRUE. In v4.5 this is set to FALSE in the config.php file.


    SVG Images
    - Text stroke-width default changed to 1
    - Text stroke - line-join type changed
    - Default value for fill changed to "black"
    - Bug fixes:
    • to correct calculation of text-length (and therefore alignment R and C)
    • Corrected errors in path implementation esp. quadratic Bezier curves
    • rounded corners to rectangles - error corrected
    • Recognition of font-family improved
    • remove \n (and other non-printable chars) from text
    • zero length shapes are not output e.g. zero-width rectangle, zero-length line, zero-radius circle
    - Support added for:
    • gradient stop offsets and gradientUnits="userSpaceOnUse"
    • user defined <ENTITY />
    • color" attribute and "currentColor" value for fill and stroke
    • fill:url(#...) in a style as well as attribute
    • xlink:href for gradients
    • 1.3002e-005 in svg path
    • text-style changes (e.g. text-anchor) set on <g> element - not just on <text>
    • fill-rule=evenodd|nozero
    • dashed lines / stroke-dasharray & stroke-dashoffset
    • gradientUnits=userSpaceOnUse;
    • units e.g. 3mm or 14pt in Rectangle, Circle, Ellipse, Line and Text position
    • transform on <text> element
    • stroke as well as fill on text