排版相关调整
This commit is contained in:
@@ -3656,7 +3656,14 @@ class Production extends Base
|
|||||||
// 方法1: 使用pdflatex命令(推荐)
|
// 方法1: 使用pdflatex命令(推荐)
|
||||||
// $command = "{$sLatexDir}pdflatex -include-directory=" . dirname($texFilePath) .
|
// $command = "{$sLatexDir}pdflatex -include-directory=" . dirname($texFilePath) .
|
||||||
// " -output-directory=" . $pdfDir . " " . escapeshellarg($texFilePath);
|
// " -output-directory=" . $pdfDir . " " . escapeshellarg($texFilePath);
|
||||||
$command = "pdflatex -output-directory=" . $pdfDir . " " . escapeshellarg($texFilePath);
|
// $command = "pdflatex -output-directory=" . $pdfDir . " " . escapeshellarg($texFilePath);
|
||||||
|
$sLatexDir = '/usr/bin/';//latex执行目录
|
||||||
|
$command = sprintf(
|
||||||
|
'%slualatex -interaction=nonstopmode -output-directory=%s %s 2>&1',
|
||||||
|
rtrim($sLatexDir, '/') . '/', // /usr/bin/lualatex
|
||||||
|
escapeshellarg($pdfDir), // 转义输出目录(含空格/特殊字符)
|
||||||
|
escapeshellarg($texFilePath) // 转义tex文件路径
|
||||||
|
);
|
||||||
|
|
||||||
$output = [];
|
$output = [];
|
||||||
$returnVar = 0;
|
$returnVar = 0;
|
||||||
@@ -4327,10 +4334,8 @@ class Production extends Base
|
|||||||
$queue = Queue::push('app\api\job\ArticleCreatePdf@fire', ['p_article_id' => $iPArticleId], 'ArticleCreatePdf');
|
$queue = Queue::push('app\api\job\ArticleCreatePdf@fire', ['p_article_id' => $iPArticleId], 'ArticleCreatePdf');
|
||||||
//生成长表格PDF
|
//生成长表格PDF
|
||||||
$aLongTableId = empty($aResult['long_table_id']) ? [] : $aResult['long_table_id'];
|
$aLongTableId = empty($aResult['long_table_id']) ? [] : $aResult['long_table_id'];
|
||||||
var_dump($aLongTableId);
|
|
||||||
if(!empty($aLongTableId)){ //调用生成长表格队列
|
if(!empty($aLongTableId)){ //调用生成长表格队列
|
||||||
$longtablequeue = Queue::push('app\api\job\ArticleCreateLongTable@fire', ['p_article_id' => $iPArticleId,'long_table_id' => $aLongTableId], 'ArticleCreateLongTable');
|
$longtablequeue = Queue::push('app\api\job\ArticleCreateLongTable@fire', ['p_article_id' => $iPArticleId,'long_table_id' => $aLongTableId], 'ArticleCreateLongTable');
|
||||||
var_dump($longtablequeue);
|
|
||||||
}
|
}
|
||||||
return json_encode(array('status' => 1,'msg' => 'tex file generated successfully'));
|
return json_encode(array('status' => 1,'msg' => 'tex file generated successfully'));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user