Convert HTML to PDF in Seconds Using PHP DOMPDF

Sample Code for DOMPDF

Instruction to Follow
1. Write Only Inline CSS
2. Can Use DIV tags But TABLE is recommended
3. Provide Full Url for the images. In Certain Hosting the Image tag method don’t Work. In that case Use it as a background image using Inline CSS

$content = stripslashes(‘Hello World’);
ini_set(“memory_limit”, “64M”);
$dompdf = new DOMPDF();
Download the DOMPDF Class Files from

This Post Has 0 Comments

Leave A Reply