Compare commits
No commits in common. "3d386f4c66f84b08fa3407730f2d0d5289227afa" and "6c82523cc887c5dadc1c7261c5a39549dc36b4e4" have entirely different histories.
3d386f4c66
...
6c82523cc8
2 changed files with 0 additions and 3 deletions
|
|
@ -60,9 +60,7 @@ class GenerateController
|
|||
}
|
||||
|
||||
// Retourner le PDF
|
||||
$filename = !empty($data['filename']) ? basename($data['filename']) : 'document.pdf';
|
||||
header('Content-Type: application/pdf');
|
||||
header('Content-Disposition: attachment; filename="' . $filename . '"');
|
||||
header('Content-Length: ' . strlen($pdf));
|
||||
echo $pdf;
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,6 @@ class PdfGenerator
|
|||
$cmd .= escapeshellcmd($this->config['pagedjs_bin']);
|
||||
$cmd .= ' ' . escapeshellarg($url);
|
||||
$cmd .= ' -o ' . escapeshellarg($pdfFile);
|
||||
$cmd .= ' --print-background';
|
||||
|
||||
if (!empty($options['timeout'])) {
|
||||
$cmd .= ' --timeout ' . (int)$options['timeout'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue