Automatically embed receipts with invoices

Step-by-step instructions for embedding files in PDF documents

Modern document management often requires bundling related documents together. With Automatic PDF Processor, you can automatically embed receipts, supporting documents, or other files into PDF invoices.

Video tutorial: Automatically embed receipts into PDF invoices (with narration and optional subtitles)

Typical use cases

  • Embed expense receipts with travel expense reports
  • Attach supporting documents to invoices
  • Bundle related contracts together
  • Include source data files with reports
  • Create ZUGFeRD invoices with XML attachments

Step 1: Create a new profile

Create a new profile with a descriptive name such as "Embed receipts". Set up the monitored folder where the main PDF files are placed.

Create profile for embedding

Step 2: Activate the "Embed Attachments" task

Go to the task view and select the "Embed Attachments" task. Activate the task and configure the embedding settings.

Embed Attachments task

Step 3: Specify files to embed

In the "Files to embed" table, add one entry per file. Each entry consists of a file path and an optional description that is shown in the PDF reader's attachment panel. The file path may contain placeholders, so the matching file can be found dynamically for each processed document:

File path Effect
D:\Templates\Terms_and_Conditions.pdf Always embeds the same fixed file
D:\Receipts\<RuleId:1(InvoiceNo)>.pdf Embeds the receipt whose name matches the extracted invoice number
D:\Receipts\<FileNameWithoutExtension>_receipt.pdf Embeds the file matching the name of the processed PDF

Use the buttons next to the table to add, edit, remove, and reorder entries.


Step 4: Additional options

  • Additionally append all other files of the parent folder: Embeds every other file located in the folder of the processed PDF - handy when the number of supporting documents varies per case.
  • If an attachment with the same name exists: Choose whether an existing embedded attachment is overwritten, skipped, or added with numbering.
Files to embed settings

Step 5: Configure storage location

Specify where the documents with embedded attachments should be saved:

D:\Invoices\Complete\<TodaysYear4>\<TodaysMonth>
Storage location for documents with attachments

Result

After configuration, all PDF files placed in the monitored folder are automatically:

  • Analyzed to find matching attachment files
  • Attachments embedded into the PDF
  • Saved as a single PDF containing all related documents

Recipients can extract embedded files using any PDF viewer that supports attachments.


Tips & notes

  • File size: Embedded files increase the PDF size. Consider compressing attachments before embedding.
  • Compatibility: Most modern PDF viewers support embedded attachments, but older viewers may not display them.
  • ZUGFeRD: For e-invoicing, the embedded XML must follow ZUGFeRD specifications. Use the dedicated ZUGFeRD task for this.

Other step-by-step instructions

Getting Started

Basic Tasks

PDF Editing

E-Invoicing & Archiving

Practical Examples

Operation & Server


To the product page of Automatic PDF Processor
Try Automatic PDF Processor now for 30 days...     Go to the download page