# Reprocess

Re-run extraction and coding after a change.

When a supplier sends a **multi-page PDF** (cover letter, terms, and invoice on different pages), Cortena can re-run extraction on **only the pages you choose**. That fixes wrong totals or line items without re-uploading the file.

**Who this is for:** AP clerks reviewing scanned or bundled PDFs where the first pages are not the invoice, or where only one section of a long document should drive extracted fields.

## 1. When to use page-range reprocess

Use it when:

- The PDF has **more than one page** and extraction clearly used the wrong pages.
- The real invoice is on **page 2–3** (or the **last page**) of a longer scan.
- You want to **avoid** a full-document reprocess that might mix cover pages into line items.

Use **full reprocess** (all pages) when the invoice truly spans the whole document or you are unsure which pages matter.

## 2. Open the reprocess menu

1. Open the invoice in **Payables** or **Expenses**.
2. In the detail header, click the **⋯** (three dots) menu on the right.
3. Choose **Reprocess invoice**.

If the PDF has **more than one page** and is **not** a structured e-invoice, hovering or clicking **Reprocess invoice** opens a **page-range submenu**.

## 3. Choose a page range

| Option | What it does |
| --- | --- |
| **All pages** | Same as a normal full reprocess |
| **First page only** | Pages 1–1 |
| **First 3 pages** | Pages 1–3 (when PDF has at least 3 pages) |
| **Last page only** | Final page only |
| **Custom range** | Enter start and end page (for example 2–4) |

**Important:** Page-range reprocess **replaces all extracted data** on the invoice with results from the **selected pages only**. Cortena asks you to confirm before starting.

## 4. Keyboard shortcut (full document only)

- **Mac:** **Ctrl+R** (not Cmd+R, which reloads the browser)
- **Windows:** **Alt+R**

The shortcut always runs a **full-document** reprocess (with confirmation). Use the **⋯** menu for partial pages.

## 5. What happens after you confirm

1. The invoice shows **Reprocessing…** and the workflow restarts from extraction.
2. Cortena **slices the PDF** to your page range before sending it to the extraction agent.
3. When processing finishes, fields, matches, and workflow steps reflect the new extraction.
4. The **Activity** log records the page range.

## 6. When page-range reprocess is not available

| Situation | Behaviour |
| --- | --- |
| **Single-page PDF** | Only full reprocess (no submenu) |
| **Structured e-invoice** (UBL, ZUGFeRD) | Page-range not supported · see [E-invoices](https://help.cortena.ai/guides/advanced/e-invoices) |
| **Invoice synced to accounting** | Reprocess disabled |
| **Invoice in treasury payment processing** | Reprocess disabled until payment completes or is rejected |
| **No permission to edit** | Menu item disabled |

## Quick reference

| Task | How |
| --- | --- |
| Reprocess specific pages | Detail **⋯** → **Reprocess invoice** → preset or custom range |
| Reprocess entire PDF | Submenu → **All pages**, or **Ctrl+R** (Mac) / **Alt+R** (Windows) |
| See what was run | **Activity** log on the invoice |
| Structured e-invoice | Full reprocess only · page slicing does not change embedded XML |
| Synced invoice | Not available · locked after accounting export |
