PackageTrack
Sign in Get early access

spipu/html2pdf

Html2Pdf is a HTML to PDF converter written in PHP - It uses TCPDF - OFFICIAL PACKAGE

v5.3.3 11M downloads/mo #2002 most downloaded on Packagist spipu/html2pdf

What this package is like to depend on

Last release 1 years ago

08 Jun 2025

Release timing varies

gaps range from 6 weeks to 1.6 years

Nearly every release is documented

notes for 21 of 21 stable releases

Nothing withdrawn

no release was ever pulled

11 years old

21 releases · first in 2015

0 releases in the last 12 months

see the full history below

Release timeline

21 releases · Dec 2015 to Jun 2025
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 21
  1. v5.3.3 08 Jun 2025
    Release notes

    What's changed

    • improve the security service

    Full Changelog: v5.3.2...v5.3.3

    Open source →
    Release notes
    • improve the security service
    Open source →
  2. v5.3.2 25 Apr 2025
    Release notes

    What's Changed

    • add readonly attribute support for input and textarea - thanks to @kkevinchoo
    • improve Security service to be able to allow specific hosts
    • update doc about Security service
    • fix security issue on css background-image validation - thanks to Nikita Sveshnikov (Positive Technologies)
    • fix security issue on image src validation - thanks to Nikita Sveshnikov (Positive Technologies)
    • fix on Index creation if no bookmark - thanks to @rhulha
    • fix tables getting moved to other pages and breaking styles by using specific class html2pdf-same-page on div container - thanks to @macr1408

    New Contributors

    Full Changelog: v5.3.1...v5.3.2

    Open source →
    Release notes
    • add readonly attribute support for input and textarea - thanks to @kkevinchoo
      • improve Security service to be able to allow specific hosts
      • update doc about Security service
      • fix security issue on css background-image validation - thanks to Nikita Sveshnikov (Positive Technologies)
      • fix security issue on image src validation - thanks to Nikita Sveshnikov (Positive Technologies)
      • fix on Index creation if no bookmark - thanks to @rhulha
      • fix tables getting moved to other pages and breaking styles by using specific class html2pdf-same-page on div container - thanks to @macr1408
    Open source →
  3. v5.3.1 26 Feb 2025
    Release notes

    What's Changed

    • add new Security service, that can be overridden
    • add some doc about new Security service
    • fix security issue on scheme for cert html tag attributes - thanks to Aleksey Solovev (Positive Technologies)
    • fix UTF8 example

    Full Changelog: v5.3.0...v5.3.1

    Open source →
    Release notes
    • add new Security service, that can be overridden
      • add some doc about new Security service
      • fix security issue on scheme for cert html tag attributes - thanks to Aleksey Solovev (Positive Technologies)
      • fix UTF8 example
    Open source →
  4. v5.3.0 08 Jan 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: v5.2.8...v5.3.0

    Open source →
    Release notes
    • bump supported phpversion from 5.6 -> 8.2 to 7.2 -> 8.4
      • add html tag "strike" - thanks to @milan-ghevariya
      • add html tag "figure" - thanks to @fredmatrack
      • replace Travis with Github actions for CI - thanks to @W0rma
      • fix casing of parameter type - thanks to @W0rma
      • fix bad type hint on setModeDebug function - thanks to @W0rma
      • fix fgetcsv usage for php 8.4 compatibility - thanks to @W0rma
      • fix TCPDF::$pdfa argument type as per upstream - thanks to @jankal
    Open source →
  5. v5.2.8 18 Jul 2023
    Release notes

    Full Changelog: v5.2.7...v5.2.8

    Open source →
    Release notes
    • fix XSS vulnerabilities in examples example9.php and forms.php - thanks to Michał Majchrowicz, Livio Victoriano and Zbigniew Piotrak from AFINE Team
    Open source →
  6. v5.2.7 02 Feb 2023
    Release notes

    Full Changelog: v5.2.6...v5.2.7

    Open source →
    Release notes
    • fix phpunit compatibility
    Open source →
  7. v5.2.6 28 Jan 2023
    Release notes

    What's Changed

    • Added compatibility with PHPUnit 9 by @jausions in #733
    • Added support of PHP 8.1 and PHP 8.2
    • Removed useless files

    New Contributors

    Full Changelog: v5.2.5...v5.2.6

    Open source →
    Release notes
    • add support of PHP 8.1 and PHP 8.2
      • add phpunit 9 compatibility - thanks to @jausions
      • remove useless files
    Open source →
  8. v5.2.5 03 Apr 2022
    Release notes
    • fix security on scheme of css and image paths for windows paths
    Open source →
    Release notes
    • fix security on scheme of css and image paths for windows paths
    Open source →
  9. v5.2.4 16 Dec 2021
    Release notes
    • revert fix multibyte aware substr when setting newline position - it causes pbs on some specific cases
    • add security on scheme of css and image paths - thanks to Clément Amic and Antoine Gicquel from Synacktiv
    Open source →
    Release notes
    • revert fix multibyte aware substr when setting newline position - it causes pbs on some specific cases
      • security #CVE-2021-45394 - add security on scheme of css and image paths - thanks to Clément Amic and Antoine Gicquel from Synacktiv
    Open source →
  10. v5.2.3 19 Oct 2021
    Release notes
    • add support for BASE64 encoded images also for backimg tag in page - thanks to @berengan
    • fix issue on write2DBarcode parameters - thanks to @sarigue
    • fix svg path parser - thanks to @CWBudde - issue #618
    • fix html attribute parser - thanks to @Tofandel
    • fix multibyte aware substr when setting newline position - thanks to @AndyTWF
    • add php8 compatibility and fix tcpdf compatibilty - thanks to @humancopy
    Open source →
    Release notes
    • add support for BASE64 encoded images also for backimg tag in page - thanks to @berengan
      • fix issue on write2DBarcode parameters - thanks to @Sarigue
      • fix svg path parser - thanks to @CWBudde - issue #618
      • fix html attribute parser - thanks to @Tofandel
      • fix multibyte aware substr when setting newline position - thanks to @AndyTWF
      • add php8 compatibility and fix tcpdf compatibilty - thanks to @humancopy
    Open source →
  11. v5.2.2 22 Mar 2020
    Release notes
    • allow usage of [[page_cu]] in css class names - thanks to @marbetschar - see example 15
      • add support for BASE64 encoded images - thanks to @darius-heavy
      • add Chinese local file - thanks to @Jaggle
      • add powershell test script
      • bump supported version from 5.4-7.2 to 5.6-7.4 - thanks to @coffeemedia
      • fix issue on _drawRectangle where array offset was being accessed on value of type null - thanks to @coffeemedia
      • fix issue on lower-roman style - thanks to @jigneshsolanki
      • fix issue on composer autoload warning - thanks to @adrienfr
    Open source →
  12. v5.2.1 26 Oct 2018
    Release notes
    • add cert tag - thanks to @LittleBigFox
      • add balloon example - issue #385
      • change the name of all the examples from exemple to example
      • fix tag parser - css style corruption
      • fix issue on relative margin calculation
      • fix issue on border radius calculation
      • fix issue on page background image width - issue #394
      • fix issue on qrcode value with multi lines - issue #390
      • fix issue on colspan usage when all the columns don't really exist - issue #360
      • fix documentation - thanks to @noxlux and @tpohchai
    Open source →
  13. v5.2.0 31 Jul 2018
    Release notes
    • change the name of CoreExtension to Core\HtmlExtension
      • change the namespace of all the html tags from Tag\ to Tag\Html
      • change all the svg tag from internal methods to new external tags
      • add the extension Core\SvgExtension
      • add locale fi - thanks to @RWAP
      • add $marginTop parameter on the createIndex method - issue #333
      • add xx-large to xx-small font-size management - issue #320
      • add colgoup html tag - issue #306
      • fix locale pt - thanks to @marcoshenzel
      • fix issue on testing the filename when asking for string output
      • fix issue - clean locale before PDF generation - thanks to @quimcalpe
      • fix issue on radio/checkbow width - thanks to @Ohda
      • fix issue on line number when using style tag - issue #338
      • fix issue on svg draw path - relative move was not implemented
      • fix issue on svg draw path when Z directive is not separate from the next directive - issue #308
      • fix issue on justify text with an inline html tag at the end of a line - issue #258
      • fix better doc
    Open source →
  14. v5.1.0 23 Jan 2018
    Release notes
    • add support of css page-break-before:always and page-break-after:always on DIV tag, based on PR #190 and PR #204
      • add no-html mode for debug output
      • add php 7.2 compatibility
      • add some unit tests, better coverage
      • fix lots of bad method names and minor improvements, from PR #147
      • fix bad cleaning after output or exception
      • fix bad format detecting on page tag - issue #260
      • fix changelog file
    Open source →
  15. v5.0.1 16 Jun 2017
    Release notes
    • fix issue #200 pb with absolute path when saving the pdf file on server
    Open source →
  16. v5.0.0 15 Jun 2017
    Release notes

    BREAK COMPATIBILITY

    This new version is not compatible with the 4.x.x version.

    Lots of classes / methods have been renamed, moved, deleted, exploded.

    • change licence to OSL-3.0
    • change PHP minimum compatibility to 5.4
    • change Using Namespaces
    • change all the classes have moved
    • change all the classes have been renamed
    • change new tag structure : one class per tag
    • change output method does not allow bool value on $dest parameter anymore
    • change output method has been renamed from Output to output
    • change values for the footerattribute of the page tag
    • add PHP 7.0 and 7.1 compatibility
    • add improve string handling for UTF8
    • add better exception management
    • add unit testing
    • add support 'start' attribute for ordered list
    • add russian language https://github.com/spipu/html2pdf/pull/131
    • add Dimension-Parameter on barcode (for PDF417, Datamatrix = 2D) https://github.com/spipu/html2pdf/pull/127
    • add pdfa parameter on Html2Pdf constructor https://github.com/spipu/html2pdf/pull/122
    • add new documentation folder ./doc/
    • add new attribute to page tag hidefooter which accepts a list of pages that gonna skip footer https://github.com/spipu/html2pdf/issues/162
    • add protection on the fallback image if it does not exist
    • add protection on thead and tfoot tags: they must contain at least one tr tag
    • add norwegian locale
    • fix a infinite loop case when reading a svg path
    • fix issue from https://github.com/spipu/html2pdf/pull/177
    • fix issue from https://github.com/spipu/html2pdf/pull/163
    • fix bug on div position https://github.com/spipu/html2pdf/issues/73
    • fix margin-bottom on table https://github.com/spipu/html2pdf/issues/108
    • fix position of fallback image
    • fix li bullet points altered by uppercase styles
    • fix save PDF file on server https://github.com/spipu/html2pdf/issues/164
    • remove old barcode type compatibility
    Open source →
  17. v4.6.1 05 Apr 2016
    Release notes
    • fix css font-family lowercase check on inherit value
    Open source →
  18. v4.6.0 30 Mar 2016
    Release notes
    • add Support 'start' attribute for ordered list
      • add Enable RTL languages support
      • add fallback support for images
    Open source →
  19. v4.5.1 02 Mar 2016
    Release notes
    • Support the "inherit" value for font-family
      • Allow the HTML font tag to define a color attribute
      • Support for max-width and max-height attributes for images
      • Fix "border: 0" being displayed
    Open source →
  20. v4.5.0 18 Dec 2015
    Release notes
    • add tag 'end_last_page' with property 'end_height'. Update example 5 to use it
      • better composer.json file
      • update TCPDF from 5.0.002 to v6.2.12 => important changes. See the TCPDF changelogs
    Open source →
  21. v4.4.0 11 Dec 2015
    Release notes
    • includes a new attribute to page tag 'hideheader' which accepts a list of pages that gonna skip header.
      • some doc fixes, rephrasing and removing french words

      • add composer management

      • Update autoload type

      • README more readable

      • add automatic generation of pdf test files

        • script ./test/generate.sh
        • You must have the html2pdf folder in http:/localhost/html2pdf/
      • fix: Set default font from PDF_FONT_NAME_MAIN constant from TCPDF, if available

      • fix: Make space-collapsing regexp Unicode-aware

      • fix: some pbs on examples to generate them automatically

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive