Nexample ? This RU-vid Channel About Some Web (Programing, Development, Design) Education And Learning With Practical Example ! Public Can Learn Here (HTML, CSS, JAVASCRIPT, JQUERY, PHP, MYSQL DATABASE) or more server Systems But Main Target Is on Server Language PHP ! many people and childs not can attend college or institute for reason money or more problems ! so i decided i will create a platform for Free on web ! here i'm not use voice in some video because voice can scale Tutorial in anyone particular language ! But Some Videos In Urdu Hindi Language Voice For Request Comments ! Support me With (Subscribe, Like, Share) if you Want !
Assuming that you're using php and you're on Windows operating system. If, after following these steps you find an error, to solve it you must go to your php.ini and uncomment the "extension=gd". That enables dompdf to visualize images! To the maker of this video I thank very much!
for all ho say that's fake it's not . i test it works $root_dir = $_SERVER['DOCUMENT_ROOT']; $dompDfPath = $root_dir.'\agile\plugins\dompdf-2/'; include($dompDfPath."autoload.inc.php"); $options = new Dompdf\Options; $options->set('chroot',realpath($root_dir)); $options->set('defaultFont', 'Arabic'); require_once $dompDfPath.'vendor/src/Arabic.php'; $dompdf = new Dompdf\Dompdf($options); $Arabic = new ArPHP\I18N\Arabic(); $html = ' ستخدام '; $p = $Arabic->arIdentify($html); for ($i = count($p)-1; $i >= 0; $i-=2) { $utf8ar = $Arabic->utf8Glyphs(substr($html, $p[$i-1], $p[$i] - $p[$i-1])); $html = substr_replace($html, $utf8ar, $p[$i-1], $p[$i] - $p[$i-1]); } $dompdf->loadHtml(' <!DOCTYPE html> <head><style> @font-face { font-family:"Arabic"; src:url("agile/css/fonts/DIN-Next-LT-Arabic-Light.ttf"); } body{ font-family:Arabic; font-size: 100px; text-align:right; } </style></head> <body> '.$html.' </body></html> '); $dompdf->setPaper('A4', 'portrait'); $dompdf->render(); $fileName = $root_dir.'test.pdf'; file_put_contents($fileName, $dompdf->output()); note : you can not use dompdf this way i just post it for quick to prove that's work . the first time try use it like me but after that you need to build your own api using dompdf for mor practical use