Back to search

University of Pretoria

Using grammar-based reduction to identify toolmarks in PDFs and determine creation tools

Abstract

dc:description.abstract

In an increasingly digital world, millions of documents are created, shared, and modified daily, serving functions that range from routine communication to legally binding agreements and high-stakes business transactions. Unlike physical records, digital documents lack tangible features, requiring forensic examiners to adopt novel analytical methods to uncover information about their origins and modification histories. This study focuses on the forensic analysis of Portable Document Format (PDF) files, one of the most prevalent digital document types. Specifically, it investigates the classification of PDFs according to their producing software by identifying structural artefacts, or toolmarks, embedded during the file's creation. The research begins with a review of relevant literature, including PDF specifications, lexical analysis, formal language theory, and prior work in forensic digital document examination (FDDE). A pilot study involving 1000 PDF files tests the viability of a grammar-based reduction method, which applies grammar rules to match recurring character sequences in a document, replacing them with simplified tokens that preserve forensic artefacts while filtering out irrelevant content. This method is then refined and applied at scale to a dataset of 9000 PDF files, enabling the profiling of toolmarks associated with a wide range of PDF-generating tools. These profiles are then applied to documents that simulate editing scenarios as well as a blind attribution test, evaluating the method’s practical utility in forensic examinations. The results demonstrate that grammar-based reduction facilitates the identification of consistent, software-specific toolmarks and enhances the reliability of classifying PDFs by their origin. When sufficient exemplars are available, robust toolmark profiles can be compiled for different creation tools and used to distinguish among certain producers, supporting both attribution and classification of possible creators. In addition, these toolmarks can be used to detect discrepancies between a file’s metadata and the structural characteristics expected of a document produced by the purported tool. This allows for the identification of editing or manipulation by different software and can assist forensic examiners in reconstructing the possible creation history of a questioned file, ultimately enabling them to address broader forensic questions about authorship, authenticity, and the sequence of events leading up to a document’s present form.

Degree

thesis:*
Department dc:contributor.department
Computer Science
Grantor dc:publisher
University of Pretoria
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Advisor dc:contributor.advisor
  • Olivier, Martin S.

Subjects

dc:subject × 5

Rights

dc:rights.accessrights
Statement dc:rights.accessrights
  • Unrestricted
  • © 2024 University of Pretoria. All rights reserved. The copyright in this work vests in the University of Pretoria. No part of this work may be reproduced or transmitted in any form or by any means, without the prior written permission of the University of Pretoria.
Language dc:language.iso
en

Identifiers

dc:identifier.*
Dc Identifier Citation
*
Dc Identifier Other
A2026

Chain of custody

source
Harvested from
University of Pretoria
Base URL
repository.up.ac.za/server/oai/request
Last updated
2026-12-02
Source record
OAI-PMH GetRecord
citation

Using grammar-based reduction to identify toolmarks in PDFs and determine creation tools. University of Pretoria, 2025. https://doi.org/10.25403/UPresearchdata.30009361