#!/usr/bin/env php ***** rebuild_merge_pdf.php (19.0.1) pid=10756 ***** Rebuild PDF files for some invoices and merge PDF files into one. To build/merge PDF for invoices in a date range: Usage: rebuild_merge_pdf.php filter=date dateafter datebefore To build/merge PDF for invoices with at least one payment in a date range: Usage: rebuild_merge_pdf.php filter=payments dateafter datebefore To build/merge PDF for invoices with at least one payment onto a bank account: Usage: rebuild_merge_pdf.php filter=bank bankref To build/merge PDF for all invoices, use filter=all Usage: rebuild_merge_pdf.php filter=all To build/merge PDF for invoices with no payments, use filter=nopayment Usage: rebuild_merge_pdf.php filter=nopayment To exclude credit notes, use filter=nocreditnote To exclude replacement invoices, use filter=noreplacement To exclude deposit invoices, use filter=nodeposit To exclude some thirdparties, use filter=excludethirdparties id1,id2... To limit to some thirdparties, use filter=onlythirdparties id1,id2... To regenerate existing PDF, use regenerate=templatename To generate invoices in a language, use lang=xx_XX To set prefix of generated file name, use prefix=myfileprefix Example: rebuild_merge_pdf.php filter=payments 20080101 20081231 lang=fr_FR regenerate=crabe Example: rebuild_merge_pdf.php filter=all lang=en_US Note that some filters can be cumulated.