dompdf icon indicating copy to clipboard operation
dompdf copied to clipboard

Update README.md

Open ThibaultPelloquin opened this issue 1 year ago • 3 comments

Adding info about using directly dompdf in Symfony without bundle

ThibaultPelloquin avatar Jun 21 '24 10:06 ThibaultPelloquin

<?php
require 'vendor/autoload.php';

use Dompdf\Dompdf;
use Dompdf\Options;

$options = new Options();
$options->set('isHtml5ParserEnabled', true);

$dompdf = new Dompdf($options);


$html = '<p>There is a less-than character after this word < Is it rendered?</p>';
$dompdf->loadHtml($html);

$dompdf->setPaper('A4', 'portrait');

$dompdf->render();

$dompdf->stream();
?>

Ayush9054 avatar Jul 12 '24 12:07 Ayush9054

THAT WAS A DUMMY COMMENT

Ayush9054 avatar Jul 12 '24 12:07 Ayush9054

Instead of a change to the README I recommend adding a page to the wiki.

bsweeney avatar Sep 01 '25 21:09 bsweeney