Office tasks
Extract PDF invoices into an Excel sheet with Duaer
In Duaer, upload a batch of PDF invoices, read their text, let the invoice extraction employee return vendor, amount, tax ID, and date, then export one Excel sheet.
Build the invoice flow in Duaer
- Hire the invoice employee: open Duaer invoice extraction employee, sign in, hire it on the employee market, and select Copy ID under Hired.
- Create a digital organization and add Form Trigger. Add one field labelled Invoices, set Element Type to File, turn on Multiple Files, and set Accepted File Types to .pdf.
- Add a Code node, rename it Split files, and paste the code below. It turns one upload of many PDFs into one item per file, each on data.
- Add Extract from File, set Operation to Extract From PDF and Input Binary Field to data. Each invoice text lands in text.
- Add Duaer Employee, paste the ID into Position ID, and set Input to {{ $json.text }}.
- Add Edit Fields, turn on Include Other Input Fields, and add a field file with {{ $('Split files').item.json.fileName }} so each row shows its source file.
- Add Convert to File with Operation Convert to XLSX. All invoices become one sheet on binary.data.
const out = [];
for (const item of $input.all()) {
for (const key of Object.keys(item.binary ?? {})) {
out.push({
json: { ...item.json, fileName: item.binary[key].fileName },
binary: { data: item.binary[key] },
});
}
}
return out;Columns in the Duaer invoice sheet
- vendor: the company name on the invoice.
- amount: a number string; currency: the currency code.
- tax_id, invoice_number, invoice_date (YYYY-MM-DD).
- file: the source PDF name.
Anything missing from the invoice is unknown; the employee does not invent numbers. Each invoice costs 8 credits at the employee price. Refer to Duaer plans and credits.
Send the Excel file
On the Duaer canvas you can download the xlsx from the Convert to File output. To deliver it every run, add Send Email with data as the attachment, or upload it with Google Drive.
Questions
Can Duaer read scanned PDF invoices?
Extract From PDF in Duaer reads only the text layer. A scan or photo has none, so text is empty; run OCR first and pass that text to the invoice employee.
How much does one invoice cost in Duaer?
The Duaer invoice extraction employee costs 8 credits per successful call, one call per invoice. Reading the PDF and exporting Excel cost nothing.
In this section
Call a hired employee with Duaer Employee
In Duaer, Duaer Employee calls an employee you hired on the employee market: send it a text or an item and get its output back. Each call costs the price its publisher set.
NodesRead a file with Extract from File in Duaer
In Duaer, Extract from File reads JSON items or text from a file on binary. The default Operation is Extract From CSV.
NodesWrite a file with Convert to File in Duaer
In Duaer, Convert to File turns the current JSON items into a file on binary. The default Operation is Convert to CSV.
Office tasksMerge several Excel files into one sheet with Duaer
In Duaer, upload several xlsx files, read every row, tag each with its source file, remove duplicates, and export one combined sheet. No formulas and no AI credits.