Test PDF form calculations in a replacement tool

3 November 2026

A calculator, an open notebook and a laptop sit on a sunlit desk.
Illustrative photograph: calculation and paperwork at a laptop. Cropped and resized. Photo: “Desktop with laptop and calculator (Unsplash).jpg” — Anonymous (not named in source) / Wikimedia Commons. · CC0 1.0

When evaluating candidate replacement PDF software, a correctly displayed form still needs a calculation test. A replacement editor or viewer may render static text, preserved form field boxes, and pre-existing field values without executing the underlying calculation scripts that evaluate dynamic totals when inputs change. To prevent calculation failures following software migration, evaluation teams must establish a minimal, independently calculated test case verifying whether form fields recalculate dynamic outputs accurately when source values are modified.

Why structural rendering tests miss form calculation defects

In software migration projects, evaluation frequently relies on visual rendering or structural object checks. While structural cloning can replicate PDF form trees, field widgets, and page appearances, it does not execute dynamic field calculation scripts.

First-party evidence illustrates the critical distinction between structural document copying and functional script evaluation. In baseline tests using synthetic fixtures, full document cloning preserved logical field structures and visual appearances. However, the official evidence limitations explicitly confirm that these structural tests involved no human form-entry task, signature, XFA, layer, script, accessibility, or encryption test. Furthermore, in the evaluation record compatibility-matrix.csv, interactive form entry and save/reopen verification (case reference C04) is documented with an unexecuted status of NOT_RUN and inputs marked NOT_SUPPLIED. Compatibility matrix · Compatibility results

The source PDF and the cloned PDF have different whole-file SHA-256 digests, even though the local structural and visual checks found the same declared field values and page appearance. Different bytes do not establish a behavioural fault; identical-looking pages do not establish recalculation. The source fixture contains case_id and amount, not a demonstrated quantity-times-price calculation. Compatibility matrix · Compatibility results · Expected values

Defining a minimal calculation test case

To isolate calculation logic from complex multi-page scripting or external database calls, define a tiny input case containing exactly two independent input fields and one calculated output field.

Use a permitted form with quantity, unit price and a calculated total, or make a separate synthetic calculation form. The existing sample contains the declared amount 137.50 and is useful as a structural reference. It does not supply those two input fields, live pricing or an executed formula test. Its human reference approval remains pending. Compatibility matrix · Compatibility results · Expected values

For a new hypothetical test, use five units at 27.50, giving an independently calculated total of 137.50. Then change only the quantity to six; the expected total becomes 165.00. Keep the inputs in plain numerical units so currency formatting does not obscure the calculation. The second input matters: a prefilled total of 137.50 might make the first step appear correct even when the tool never recalculates.

Record an observation from the actual replacement build

StepExpected value or behaviourWhere to checkActual result
Enter quantity 5 and unit price 27.50; trigger the form’s documented calculationTotal 137.50Page, visible widget and logical output field on the test formPending
Change quantity to 6, keeping the same unit priceTotal changes to 165.00Same field, after the normal recalculation triggerPending
Save a separate output and close the editorThe result is written to the identified output versionSaved file and version or digestPending
Reopen the saved file in the intended recipient readerRequired field value and visible total agree with 165.00Logical field and displayed total in the reopened outputPending

Record the source and candidate product builds, relevant form type and settings, exact field identifiers, input/output versions, expected values and actual observations. Keep the file with the test record. If the first step matches but the second remains 137.50, record a failed recalculation for that tested form and configuration. If it updates in the editor but reopens with the old value, log a separate persistence or recipient-visibility failure.

A stale value does not identify the technical cause. Establish whether the expected trigger ran, whether the calculation depends on a supported form feature and whether the approved configuration permits it. Do not lower security settings merely to make a test pass. The source matrix leaves form-entry and specialist checks unrun; it does not show a candidate failure or justify claiming script support. Decide whether to approve the workflow, request a supported alternative or retain the current process only after the actual result has been checked. Compatibility results · Compatibility matrix

Part of the Catch lost form fields and attachments in a PDF copy guide.

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