İlk temizlik tamamlandı bir önceki projeden
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php function html_to_pdf($html, $pdf, $paper="portrait")
|
||||
{
|
||||
$params = "";
|
||||
if($paper == "landscape") {
|
||||
$params = "-O landscape";
|
||||
}
|
||||
putenv('LANG=ru_RU.UTF-8');
|
||||
$wk_path = env("wk_path");
|
||||
$command = "$wk_path $params '$html' '$pdf'";
|
||||
return shell_exec($command);
|
||||
} ?>
|
||||
Reference in New Issue
Block a user