Комментарии:
Bro what you did ??? still confusing
don't know what you are trying to do?
seriously fack video
thanks broo you saved a lot time for me thanks
Ответитьthanks alot bro it works fine
Ответить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
fack
Ответитьone word >>>>>>fack video
Ответитьvery complecated the method and explination
Ответить