Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Metadata Hex

1 sites No security coverage
View on drupal.org

Metadata Hex automates the extraction and mapping of metadata from PDFs and Markdown files into Drupal content. It can automatically process nodes and files upon insertion, ingest uploaded files, and map extracted metadata to Drupal fields, reducing manual data entry and ensuring consistency. The module offers configurable mappings, batch processing for bulk operations, and administration settings for managing extraction rules and file ingestion.

Metadata Hex

Introduction

Metadata Hex is a powerful Drupal module that automates metadata extraction, processing, and mapping for nodes and files. It supports structured metadata ingestion from PDFs and Markdown, dynamically associating extracted values with Drupal fields. This module streamlines content management by automating metadata handling, ensuring data consistency, and reducing manual input.

Features

✅ Automated Metadata Extraction

  • Extracts metadata from PDFs using Smalot\PdfParser.
  • Extracts metadata from Markdown using Symfony\Yaml.
  • Future support for additional file types via plugin-based handlers.

✅ Node & File Processing

  • Automatically processes nodes upon insertion via hook_node_insert().
  • Dynamically ingests and categorizes uploaded files.

✅ Configurable Mappings

  • Maps extracted metadata to Drupal entity fields.
  • Provides strict handling and data protection options.

✅ Batch Processing

  • Supports bulk metadata extraction and node updates.
  • Allows processing of entire directories and file attachments.

✅ Admin Configuration

  • Fully manageable from the Drupal admin panel at /admin/config/metadata_hex.

Post-Installation

After installing the module:

  1. Navigate to Configuration → Metadata Hex Settings (/admin/config/metadata_hex).
  2. Configure metadata extraction rules, including:
    • Node Processing: Enable automatic extraction for specific content types.
    • File Ingestion: Define monitored directories and metadata mappings.
    • Strict Handling: Enforce metadata validation rules.
  3. New nodes of configured types will automatically have their metadata extracted and assigned.
  4. To manually process files, run batch processing via the admin panel or Drush.

Additional Requirements

Drupal Core (latest version recommended).
PHP Libraries:
* Smalot\PdfParser (for PDF metadata extraction).
* Symfony\Yaml (for Markdown metadata parsing).

Supporting this Module

If you find Metadata Hex useful, consider supporting its development:
 ☕ Buy Me a Coffee

Community Documentation

For additional resources, walkthroughs, and external documentation, visit:

  • GitHub Repository: Metadata Hex
  • Module Documentation: Metadata Hex Docs

Activity

Total releases
6
First release
Mar 2025
Latest release
3 months ago
Releases (12 mo)
4 ▲ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.5 Stable Apr 1, 2026
1.0.4 Stable Mar 30, 2026
1.0.3 Stable Mar 27, 2026
1.0.2 Stable Oct 21, 2025
1.0.1 Stable Mar 17, 2025
1.0.0 Stable Mar 16, 2025