Profile Configuration

How to configure Profiles to define data processing, PDF generation, and email rules.

Profiles are the heart of PDF Mail Engine. A Profile creates a repeatable set of rules for reading your data, generating PDFs, and sending emails. You can create multiple profiles for different purposes, such as "Monthly Invoices," "Event Tickets," or "Payment Reminders."


Core Configuration

When you create or edit a profile, the Core Configuration section handles the essential settings required to start generating files.

SettingDescription
Profile NameGive your profile a unique name (e.g., "Invoices_2024"). This name is used to organize your files and logs.
DescriptionAdd a private note about this profile's purpose. This is optional and only for your reference.
Template FileSelect the rule file (.yaml) that defines how your PDF and Email content is generated.
Default: templates/template.yaml
Master Data FileSelect your customer list or address book (CSV or Excel).
Default: data/master_data.csv
PDF Output FolderChoose where the generated PDFs should be saved.
Default: outputs

Optional Configuration

Use these settings if you are working with specific Excel files or need to ensure compatibility with Japanese Excel environments.

Excel Sheet Selection

If your data is in an Excel file (.xlsx), you can specify exactly which sheet to read.

  • Import Sheet Name: The name of the Excel sheet containing your transaction data (the list of items to process).
  • Master Sheet Name: The name of the Excel sheet containing your master customer data.

Compatibility Settings

  • Add BOM Output: Check this box if you plan to open exported CSV files in Microsoft Excel on Windows. This adds a special marker (BOM) to the file to prevent Japanese characters from appearing as garbled text (Mojibake).

Technical Details

This section is for system administrators or users configuring profiles via direct file editing.

File & Path Logic

All file paths in the configuration are relative to your Profile Workspace folder. This allows you to copy or move the entire profile folder to another computer without breaking the links.

Field KeyInternal KeyDefault ValueNotes
Profile Nameprofile_name(Required)Max 50 chars.
DescriptiondescriptionnullOptional internal notes.
Template Filepdf_template_pathtemplates/template.yamlExpects YAML format.
Master Datamaster_csv_pathdata/master_data.csvSupports CSV, XLSX, XLS.
PDF Outputpdf_output_base_diroutputsAuto-creates subfolders.
Import Sheetimport_sheet_namenull (First Sheet)For Transaction Data.
Master Sheetmaster_sheet_namenull (First Sheet)For Master Data.
BOM Outputcsv_export_with_bomfalseSet true for Excel/Shift-JIS compatibility.