363 Batch Print

Batch Print

Tick many documents - invoices, receipts, certificates, templates - and print them in one job: one merged PDF (one print job, pages in order), a ZIP with one PDF each, or straight to a printer.

Output

0 documents selected

Documents

DocumentType
Product catalogue report (multi-page) Reports
INV-202610-005 - Green Valley International School (8,448.72) Invoices
INV-202610-004 - Northstar Logistics Co., Ltd. (34,903.40) Invoices
INV-202610-003 - Riverside Hotel Bangkok (166.92) Invoices
INV-202610-002 - Lanna Craft Studio (39,108.50) Invoices
INV-202610-001 - Bangkok Smile Dental Clinic (26,105.86) Invoices
INV-202609-006 - Andaman Dive Resort (2,747.76) Invoices
INV-202609-005 - Chiang Mai Coffee House (4,964.80) Invoices
INV-202609-004 - Siam Fresh Market Co., Ltd. (49,423.30) Invoices
INV-202609-003 - Green Valley International School (46,421.95) Invoices
INV-202609-002 - Northstar Logistics Co., Ltd. (36,760.92) Invoices
INV-202609-001 - Riverside Hotel Bangkok (16,376.35) Invoices
INV-202608-005 - Lanna Craft Studio (25,487.40) Invoices
INV-202608-004 - Bangkok Smile Dental Clinic (78,414.95) Invoices
INV-202608-003 - Andaman Dive Resort (5,371.40) Invoices
INV-202608-002 - Chiang Mai Coffee House (17,580.10) Invoices
INV-202608-001 - Siam Fresh Market Co., Ltd. (14,113.30) Invoices
RC-2026-00006 - Green Valley International School Receipts (80 mm)
RC-2026-00005 - Northstar Logistics Co., Ltd. Receipts (80 mm)
RC-2026-00004 - Lanna Craft Studio Receipts (80 mm)
RC-2026-00003 - Bangkok Smile Dental Clinic Receipts (80 mm)
RC-2026-00002 - Chiang Mai Coffee House Receipts (80 mm)
RC-2026-00001 - Siam Fresh Market Co., Ltd. Receipts (80 mm)
CERT-2026-0006 - Michael Brown Certificates
CERT-2026-0005 - Lalita Phromma Certificates
CERT-2026-0004 - Supachai Wongsawat Certificates
CERT-2026-0003 - Emily Johnson Certificates
CERT-2026-0002 - Natthaya Chaiyaporn Certificates
CERT-2026-0001 - Kittipong Saetang Certificates
Customer welcome letter (first customer) Custom templates
Quotation letter (first invoice) Custom templates
Training attendance notice (first certificate) Custom templates
How it works
  • Each ticked key (invoice:3, certificate:2 ...) is built by DocumentCatalog.build().
  • Merged: OpenPDF PdfCopy appends the pages of every PDF to one new file. Each document keeps its own "Page x of y", because the pages are copied as they are.
  • ZIP: java.util.zip.ZipOutputStream, one entry per document.
PdfCopy copy = new PdfCopy(document, out);
document.open();
for (GeneratedDoc d : docs) {
    PdfReader reader = new PdfReader(d.bytes());
    for (int page = 1; page <= reader.getNumberOfPages(); page++) {
        copy.addPage(copy.getImportedPage(reader, page));
    }
}
document.close();

Files: service/BatchPrintService.java, web/PrinterController.java.