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 1, 2024 via composer

dompdf/dompdf v0.6.1

DOMPDF is a CSS 2.1 compliant HTML to PDF converter
Package summary
Share
22
issues
20
high severity
vulnerability
18
license
2
2
low severity
license
2
1
license
2
LGPL
Package created
15 Nov 2012
Version published
11 Mar 2014
Maintainers
3
Total deps
2
Direct deps
1
License
LGPL

Issues

22

20 high severity issues

high
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
via: dompdf/dompdf@v0.6.1
Recommendation: Validate that the package complies with your license policy
via: dompdf/dompdf@v0.6.1
Recommendation: Validate that the package complies with your license policy
via: phenx/php-font-lib@0.2.2
Collapse
Expand

2 low severity issues

low
Recommendation: Read and validate the license terms
via: dompdf/dompdf@v0.6.1
Recommendation: Read and validate the license terms
via: phenx/php-font-lib@0.2.2
Collapse
Expand

Licenses

LGPL

Invalid
Not OSI Approved
2 Packages, Including:
dompdf/dompdf@v0.6.1
phenx/php-font-lib@0.2.2
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

1
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.2.21.09 MBLGPL
prod
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.