Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 9, 2024 via composer

dompdf/dompdf v1.1.1

DOMPDF is a CSS 2.1 compliant HTML to PDF converter
Package summary
Share
20
issues
15
high severity
vulnerability
15
3
moderate severity
license
3
2
low severity
license
2
4
licenses
1
LGPL-2.1
1
LGPL-2.1-or-later
1
LGPL-3.0
1
MIT
Package created
15 Nov 2012
Version published
24 Nov 2021
Maintainers
3
Total deps
4
Direct deps
2
License
LGPL-2.1

Issues

20

15 high severity issues

high
via: dompdf/dompdf@v1.1.1
via: dompdf/dompdf@v1.1.1
via: dompdf/dompdf@v1.1.1
via: dompdf/dompdf@v1.1.1
via: dompdf/dompdf@v1.1.1
via: dompdf/dompdf@v1.1.1
via: dompdf/dompdf@v1.1.1
via: dompdf/dompdf@v1.1.1
via: dompdf/dompdf@v1.1.1
via: dompdf/dompdf@v1.1.1
via: phenx/php-svg-lib@0.3.4
via: phenx/php-svg-lib@0.3.4
Collapse
Expand

3 moderate severity issues

moderate
Recommendation: Validate that the package complies with your license policy
via: dompdf/dompdf@v1.1.1
Recommendation: Validate that the package complies with your license policy
via: phenx/php-font-lib@0.5.6
Recommendation: Validate that the package complies with your license policy
via: phenx/php-svg-lib@0.3.4
Collapse
Expand

2 low severity issues

low
via: dompdf/dompdf@v1.1.1
via: phenx/php-svg-lib@0.3.4
Collapse
Expand

Licenses

GNU Lesser General Public License v2.1 only

Weakly Protective
OSI Approved
Deprecated
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
sublicense
Must
include-original
include-copyright
include-license
disclose-source
state-changes
include-notice
1 Packages, Including:
dompdf/dompdf@v1.1.1

GNU Lesser General Public License v2.1 or later

Weakly Protective
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
phenx/php-font-lib@0.5.6

GNU Lesser General Public License v3.0 only

Weakly Protective
OSI Approved
Deprecated
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
use-patent-claims
Cannot
sublicense
hold-liable
Must
include-original
state-changes
disclose-source
include-license
include-copyright
include-install-instructions
1 Packages, Including:
phenx/php-svg-lib@0.3.4

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
sabberworm/php-css-parser@v8.5.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of dompdf/dompdf 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
phenx/php-font-lib0.5.6-LGPL-2.1-or-later
prod
1
phenx/php-svg-lib0.3.482.89 kBLGPL-3.0
prod
3
1
1

Visualizations

Frequently Asked Questions

What does dompdf/dompdf do?

Dompdf is a powerful tool that operates as an HTML to PDF converter. At its core, it's a style-driven rendering engine, capable of interpreting and implementing CSS 2.1. Not only does it support most presentational HTML attributes, but it also reads external stylesheets, inline style tags, and CSS rules for individual HTML elements. Its exceptional functionality, written in PHP, allows for a wide array of CSS 2.1 properties, including @import, @media, and @page rules.

How do you use dompdf/dompdf?

You can utilize Dompdf in just a few easy steps. Start by installing it with Composer using the command composer require dompdf/dompdf. Then, you'll have to load the Composer autoload file in your project.

require 'vendor/autoload.php';

The core Dompdf class can be utilized to convert your HTML content into a PDF.

use Dompdf\Dompdf;

$dompdf = new Dompdf();
$dompdf->loadHtml('hello world');
$dompdf->setPaper('A4', 'landscape');
$dompdf->render();
$dompdf->stream();

Also, you can set options either during Dompdf instantiation or at run time.

use Dompdf\Dompdf;
use Dompdf\Options;

$options = new Options();
$options->set('defaultFont', 'Courier');
$dompdf = new Dompdf($options);

These steps should assist you in exploiting Dompdf's powerful functionality to generate PDFs from HTML content.

Where are the dompdf/dompdf docs?

You can find the comprehensive documentation for Dompdf here. In addition to explaining various features and functions of the package, it also offers insight on requirements, recommendations, and known limitations. It contains all the necessary information to use, troubleshoot, and understand the workings of the Dompdf package, making it helpful for all users, including newcomers and experienced developers.