Some recipients need an extra attachment, some don’t. Premium customers get the case study; standard ones skip it. Online students need the LMS guide; on-campus students don’t. pdfMachine merge decides per row, using merge fields you already have.
Three states per attachment.
Enabled (always), Enabled on Condition (sometimes), or Disabled (never). Set each attachment’s state once; pdfMachine merge applies it across the whole run.
Conditions read your merge fields.
Write expressions like
age >= 18, campus == 'online', or tier == 'premium'. Each row’s data drives whether the attachment goes out.
Variable attachments per email.
One row gets the brochure and the price guide. Another gets just the brochure. A third gets neither. All from the same merge run.
Some rows get it. Some don’t. The data decides.
Requires a pdfMachine merge license.