Placeholder System Explained

Master the placeholder system for dynamic automation

At a Glance

  • Difficulty: Beginner to Intermediate
  • Time required: ~15 minutes
  • Prerequisites: Getting Started tutorial
  • What you'll learn: File properties, extracted data placeholders, date formatting

What are placeholders?

Placeholders are special tags enclosed in angle brackets < > that get replaced with actual values when a PDF file is processed. They allow you to create dynamic file names, folder paths, and email content that automatically adapt to each document.

Example:

File name pattern: <FileName>_<FileCreatedYear4>-<FileCreatedMonth>

Result: Invoice_2024-12.pdf


Types of placeholders

There are three main categories of placeholders:

Category Description Example
File Properties Information about the PDF file itself <FileName>, <ParentFolder>
Date/Time Various date formats based on file or processing date <FileCreatedYear4>, <TodayMonth>
Extracted Data Values extracted from PDF content using rules <RuleId:1(InvoiceNumber)>

File property placeholders

These placeholders provide information about the PDF file being processed:

Placeholder Description Example Value
<FileName> Original file name (without extension) Invoice-2024-001
<FileExtension> File extension .pdf
<ParentFolder> Name of the containing folder Incoming
<SourceFolder> Full path of the source folder C:\Documents\Invoices
<PageCount> Number of pages in the PDF 3
<FileSize> File size in bytes 125432

Date and time placeholders

Date placeholders are available for different date sources: file creation date, file modification date, processing date (today), and dates extracted from PDF content.

Date sources:

Prefix Date Source
FileCreated... When the file was created
FileModified... When the file was last modified
Today... Current date when processed
RuleId:X(Name){...} Date extracted from PDF content

Date components:

Suffix Description Example
...Year4 4-digit year 2024
...Year2 2-digit year 24
...Month Month (2 digits) 12
...MonthName Month name December
...Day Day of month (2 digits) 15
...Week Week number 50
...Quarter Quarter (1-4) 4

Example: Organize by year and month

Sub-folder: <FileCreatedYear4>\<FileCreatedMonth>-<FileCreatedMonthName>

Result: 2024\12-December


Extracted data placeholders

These placeholders use values extracted from PDF content via extraction rules. The syntax includes the rule ID and optionally the rule name for readability.

Basic syntax:

<RuleId:1(RuleName)>
  • RuleId:1 - The unique ID number of the extraction rule
  • (RuleName) - The name you gave the rule (optional but recommended for clarity)

Example: Invoice file naming

File name: <RuleId:1(InvoiceNumber)>_<RuleId:2(CustomerName)>

Result: INV-2024-0042_ACME Corporation.pdf

Date formatting for extracted dates:

When an extraction rule uses the Date data type, you can access individual date components using curly braces:

<RuleId:2(InvoiceDate){Year4}>-<RuleId:2(InvoiceDate){Month}>-<RuleId:2(InvoiceDate){Day}>

Result: 2024-12-15 (ISO date format)

Available date components: {Year4}, {Year2}, {Month}, {MonthName}, {Day}, {Week}, {Quarter}


How to insert placeholders

  1. In any task configuration with a text field (File Name, Sub-folder, Email Subject, etc.)
  2. Click the Insert placeholder link above the input field
  3. Select the category: File properties, Date/Time, or Extracted data
  4. Choose the specific placeholder you want to insert
  5. The placeholder is inserted at the cursor position

Tip: You can also type placeholders directly if you know the syntax. The Results Preview tab shows how placeholders will be resolved for your sample files.


Combining placeholders

You can combine multiple placeholders with static text to create complex naming patterns. Use underscores, hyphens, or other characters to separate values.

Example: Complete archive path

  • Base folder: C:\Archive
  • Sub-folder: <RuleId:1(Supplier)>\<RuleId:2(InvoiceDate){Year4}>\<RuleId:2(InvoiceDate){Quarter}>Q
  • File name: <RuleId:2(InvoiceDate){Year4}>-<RuleId:2(InvoiceDate){Month}>-<RuleId:2(InvoiceDate){Day}>_<RuleId:3(InvoiceNumber)>

Result: C:\Archive\ACME Corp\2024\4Q\2024-12-15_INV-0042.pdf


Result

After completing this tutorial, you understand:

  • The three types of placeholders (file properties, dates, extracted data)
  • How to format dates using date components
  • How to reference extracted data with RuleId syntax
  • How to combine placeholders for complex naming patterns
  • How to insert and preview placeholders in the application

Common issues & solutions

Problem Solution
Placeholder appears literally in result (not replaced)
  • Check spelling and syntax - placeholders are case-sensitive
  • Verify the extraction rule exists and has the correct ID
  • Use Insert placeholder menu instead of typing manually
Extracted value is empty
  • Check that the extraction rule works for this PDF
  • Verify sample files are configured in the profile
  • Test the extraction rule in the Rule Editor
Invalid characters in file name Extracted values may contain characters not allowed in file names (e.g., / \ : * ? " < > |). Use the text editing options in the extraction rule to remove or replace these characters.
Date format not as expected
  • Use date components ({Year4}, {Month}, etc.) for precise control
  • Ensure the extraction rule uses the Date data type
  • Combine components in the order you need

Quick reference

Common placeholder patterns:

Use Case Pattern
Date-based archive folder <FileCreatedYear4>\<FileCreatedMonth>
Invoice naming <RuleId:1(Number)>_<RuleId:2(Date){Year4}-{Month}-{Day}>
Customer folder organization <RuleId:1(Customer)>\<TodayYear4>
Timestamped backup <FileName>_<TodayYear4><TodayMonth><TodayDay>

Other step-by-step instructions

Getting Started

Basic Tasks

PDF Editing

E-Invoicing & Archiving

Practical Examples


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