noalyss Version-9
|
Export DOCUMENT from Analytic accountancy, can transform into PDF and add a stamp on each pages. More...
Public Member Functions | |
__construct () | |
create 2 temporary folders, store_pdf and store_convert, initialize an array feedback containing messages More... | |
check_file () | |
check that the files are installed throw a exception if one is missing More... | |
clean_folder () | |
remove folder and its content More... | |
concatenate_pdf () | |
concatenate all PDF into a single one and save it into the store_pdf folder. More... | |
export_all ($p_array, Progress_Bar $progress, $p_separate=1, $reconcilied_document=2) | |
export all the pieces in PDF and transform them into a PDF with a stamp. More... | |
export_receipt ($p_jrn_id, Progress_Bar $progress, $step) | |
export a file ( More... | |
make_zip () | |
Make a zip file. More... | |
move_file ($p_source, $p_target) | |
copy the file More... | |
reorder_array ($p_array) | |
Order the array with the date. More... | |
send_pdf () | |
send the resulting PDF to the browser More... | |
send_zip () | |
send the resulting PDF to the browser More... | |
Export DOCUMENT from Analytic accountancy, can transform into PDF and add a stamp on each pages.
It depends on PDFTK and CONVERT_GIF_PDF
Definition at line 27 of file document_export.class.php.
Document_Export::__construct | ( | ) |
create 2 temporary folders, store_pdf and store_convert, initialize an array feedback containing messages
Definition at line 34 of file document_export.class.php.
Document_Export::check_file | ( | ) |
check that the files are installed throw a exception if one is missing
Definition at line 300 of file document_export.class.php.
References $ex, PDF2PS, and PS2PDF.
Referenced by concatenate_pdf(), export_all(), and move_file().
Document_Export::clean_folder | ( | ) |
remove folder and its content
Definition at line 147 of file document_export.class.php.
References $i.
Document_Export::concatenate_pdf | ( | ) |
concatenate all PDF into a single one and save it into the store_pdf folder.
If an error occurs then it is added to feedback
Definition at line 55 of file document_export.class.php.
References $status, and check_file().
Referenced by export_all().
Document_Export::export_all | ( | $p_array, | |
Progress_Bar | $progress, | ||
$p_separate = 1 , |
|||
$reconcilied_document = 2 |
|||
) |
export all the pieces in PDF and transform them into a PDF with a stamp.
If an error occurs then $this->feedback won't be empty
$p_array | contents all the jr_id | |
Progress_Bar | $progress | is the progress bar |
int | $p_separate | 1 everything in a single PDF or a ZIP with all PDF |
int | $reconcilied_operation | 1 with receipt of reconcilied operation 2 without them |
Definition at line 173 of file document_export.class.php.
References $cn, $op, $order, $output, $p_array, $progress, $reconcilied_document, $status, $step, $value, check_file(), concatenate_pdf(), export_receipt(), make_zip(), move_file(), reorder_array(), send_pdf(), send_zip(), and Progress_Bar\set_value().
Document_Export::export_receipt | ( | $p_jrn_id, | |
Progress_Bar | $progress, | ||
$step | |||
) |
export a file (
type | $p_jrn_id | |
$progress |
Definition at line 322 of file document_export.class.php.
References $cn, $ext, $file, $img, $output, $progress, $receipt, $status, $step, clean_filename(), noalyss_str_replace(), PDF2PS, and PS2PDF.
Referenced by export_all().
Document_Export::make_zip | ( | ) |
Make a zip file.
Definition at line 85 of file document_export.class.php.
References $res.
Referenced by export_all().
Document_Export::move_file | ( | $p_source, | |
$p_target | |||
) |
copy the file
$p_source | |
$target |
Exception |
Definition at line 110 of file document_export.class.php.
References $i, $target, and check_file().
Referenced by export_all().
Document_Export::reorder_array | ( | $p_array | ) |
Order the array with the date.
array | $p_array | array of jrn.jr_id |
Definition at line 457 of file document_export.class.php.
References $array, $cn, and $p_array.
Referenced by export_all().
Document_Export::send_pdf | ( | ) |
send the resulting PDF to the browser
Definition at line 125 of file document_export.class.php.
Referenced by export_all().
Document_Export::send_zip | ( | ) |
send the resulting PDF to the browser
Definition at line 136 of file document_export.class.php.
Referenced by export_all().