Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Html2Pdf Laravel Package

spipu/html2pdf

HTML2PDF converts HTML/CSS into PDF documents with a straightforward PHP API. Supports page setup, headers/footers, images, fonts and Unicode, tables, and basic CSS styling. Useful for invoices, reports, and print-ready exports in web apps.

View on GitHub
Deep Wiki
Context7
v5.3.3

What's changed

  • improve the security service

Full Changelog: https://github.com/spipu/html2pdf/compare/v5.3.2...v5.3.3

v5.3.2

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: https://github.com/spipu/html2pdf/compare/v5.3.1...v5.3.2

v5.3.1

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: https://github.com/spipu/html2pdf/compare/v5.3.0...v5.3.1

v5.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/spipu/html2pdf/compare/v5.2.8...v5.3.0

v5.2.6

What's Changed

New Contributors

Full Changelog: https://github.com/spipu/html2pdf/compare/v5.2.5...v5.2.6

v5.2.5
  • fix security on scheme of css and image paths for windows paths
v5.2.4
  • 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
v5.2.3
  • 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
v5.2.2
  • 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
v5.2.1
  • 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
v5.2.0
  • 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
v5.1.0
  • 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
v5.0.1

fix issue #200 pb with absolute path when saving the pdf file on server

v5.0.0

BREAK COMPATIBILITY

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

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

v4.6.1
v4.6.0
v4.5.1

Changelog :

  • 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
v4.5.0

Changelog :

  • 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
v4.4.0

see changelog

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor
spatie/laravel-javascript-views