Record PDF processing inputs and outputs in an audit trail

12 June 2026

A hand uses a computer mouse on a wooden desk.
Colleagues mapping a process on a whiteboard. Illustrative photograph. Photo by Walls.io on Pexels · Pexels License

Keep the source document ID and revision fixed across a retry. Give each attempt its own identity, then record which attempt created each output. Someone reading the log should be able to reconstruct that chain without opening the PDF or seeing its contents.

Trace one conversion with two results

Suppose a service converts source D-101, revision 3, into a review PDF and a thumbnail. The first attempt stops before committing any output. A second attempt uses the same source revision and succeeds.

EventJob and attemptInputOutput or outcome
Conversion acceptedJ-8, AD-101, revision 3No output yet
Attempt endedJ-8, AD-101, revision 3Failed before commit
Retry startedJ-8, BD-101, revision 3No output yet
Results committedJ-8, BD-101, revision 3Review PDF R-20 and thumbnail R-21

The identifiers are illustrative. Keep both outputs even when the caller only requested a link to the review PDF. If an attempt ends with an uncertain commit, inspect the output store before recording that it produced nothing.

Design the record around the question

Record event identity, time, actor or service identity, action, source revision, attempt, outcome and resulting object IDs. Distinguish an event delivered twice from two attempts. If the completion record is missing, check the worker and output store before classifying the attempt as failed. OWASP describes using an interaction identifier to correlate related events. OWASP logging guidance

Keep PDF contents, extracted text, signed download URLs and credentials out of this record. Restrict access to logs and join to the document store only through an authorised process. As a check, give a reviewer R-21 and ask them to recover the input revision and both attempts using only the permitted audit fields.

Part of the PDF editor audit trails: what should a business log record? guide.

Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).