| @@ 371-376 (lines=6) @@ | ||
| 368 | } |
|
| 369 | } |
|
| 370 | ||
| 371 | if (empty($pdf_name)) { |
|
| 372 | $output_file = 'pdf_'.date('Y-m-d-his').'.pdf'; |
|
| 373 | } else { |
|
| 374 | $pdf_name = api_replace_dangerous_char($pdf_name); |
|
| 375 | $output_file = $pdf_name.'.pdf'; |
|
| 376 | } |
|
| 377 | // F to save the pdf in a file |
|
| 378 | $this->pdf->Output($output_file, 'D'); |
|
| 379 | exit; |
|
| @@ 487-492 (lines=6) @@ | ||
| 484 | } |
|
| 485 | $this->pdf->WriteHTML($document_html); |
|
| 486 | ||
| 487 | if (empty($pdf_name)) { |
|
| 488 | $output_file = 'pdf_'.date('Y-m-d-his').'.pdf'; |
|
| 489 | } else { |
|
| 490 | $pdf_name = api_replace_dangerous_char($pdf_name); |
|
| 491 | $output_file = $pdf_name.'.pdf'; |
|
| 492 | } |
|
| 493 | //$this->pdf->Output($output_file, $outputMode); // F to save the pdf in a file |
|
| 494 | ||
| 495 | if ($outputMode == 'F') { |
|