Split of PDF with multiple invoices

The most straightforward use case for this solution is to receive each invoice as a separate PDF. However, IDP also supports PDF splitting.

When PDF splitting is enabled, a single PDF containing multiple invoices is automatically split into individual PDF files. Each PDF contains one invoice and is processed separately.

Set the RPA user argument, enablePDFSplitting, to True to enable the PDF splitting into multiple PDF documents, or False to disable it. The behavior changes based on this setting.

Process behavior

When a PDF contains multiple invoices, this process behavior applies regardless of whether PDF splitting is enabled or disabled:
  • RPA creates one invoice record for each invoice number in the PDF.
  • For each invoice:
    • A single correlation ID generated.
    • A separate BOD is created and sent to M3.

This table shows how behavior differs based on whether the mentioned user argument is enabled or disabled:

Aspect PDF splitting is enabled PDF splitting is disabled
Split of original PDF Yes. The PDF is automatically divided into separate files, one per invoice. No. The original PDF is kept as is.
Generated PDF files New PDFs are created for each invoice. No new PDFs are created.
Naming of PDFs

<OriginalFileName>from<pageNumber>to<pageNumber>.pdf

This naming convention indicates which pages from the original document are used for the invoice.

Original PDF name is unchanged.
Invoice content in IDM Only the pages containing invoice details are retained and displayed in IDM. Supporting documents such as purchase orders, delivery notes, or other documentation that are included in the same PDF are excluded. The full original PDF is displayed for every invoice, including all invoices and any supporting documents.

The primary reason to disable PDF splitting is to preserve supporting documents included in a multi‑invoice PDF in IDM. When PDF splitting is enabled, the system cannot retain or reattach supporting documents, so only invoice‑related pages are available in IDM.

Availability of original PDF after splitting

If PDF splitting is enabled and performed, the original combined document is not available in the tenant.

To retrieve the original PDF, perform any of these actions:

  • Check the original email received from the supplier.
  • Check the success or output folder where the raw file is initially stored.