Catch lost form fields and attachments in a PDF copy
8 August 2025
A PDF can keep its one-page appearance and lose the information that makes the form usable. Compare the source, a document clone and a page-only copy in this fixture. Check the logical fields and attachment independently of the page image before accepting an output for migration.
Related articles
- Test PDF form calculations in a replacement tool
- Verify embedded attachments in replacement PDF software
- Check annotation compatibility when changing editors
- Record specialist functions requiring retained software
Which objects have to survive the copy?
The decision is which specialist document features can block migration. Start with a known workflow: a caseworker completes a form, an engineer prints a layered drawing, or a reviewer opens a signed submission with supporting attachments. Define what must remain usable after the precise operation being evaluated.
Assign the business owner to approve the expected outcome and the test lead to preserve reproducible evidence. Include the source document version, application build, operating system, task sequence and output checksum. “Opened successfully” is insufficient when the next step requires editing, saving or extracting content.
Where this guidance stops
This is a compatibility framework for difficult files, supported by a small local demonstration. It does not rank commercial applications or qualify an ArkePDF capability. General inventory discovery precedes this work; detailed signature, font and accessibility assurance require their own specialist cases and competent review.
Build the difficult-file corpus
Known business-critical feature combinations
Choose documents because they exercise required combinations. A form with an attachment is a stronger case for a submission workflow than unrelated examples of each feature. A signed drawing may require both signature validation and the correct print-layer state.
Create a matrix containing the source ID, permitted operation, expected structural result, expected user behaviour, visual reference and evidence location. Define failure before running the candidate software. Otherwise, a convenient output can become the acceptance standard after the fact.
pypdf's form documentation distinguishes the document's form structure from page widget annotations. Its attachment documentation also treats embedded files as document content. These distinctions inform the separate checks in the example below.
For real migration cases, include the operations people depend on:
| Feature combination | Required behaviour to specify |
|---|---|
| Form plus attachment | Enter values, save, reopen and recover the attachment unchanged |
| Signed submission | Obtain the expected validation result before and after the permitted operation |
| Layered drawing | Preserve approved screen and print visibility |
| Complex text | Preserve readable glyphs, text order and required search or copy behaviour |
Adobe describes viewing, printing and exporting as separate layer settings. A drawing's screen appearance therefore cannot stand in for its print test. For signatures, use the appropriate trust, content and timestamp checks from the official validation guidance, with a reviewer who understands the actual signing workflow.
One page, two fields and an attachment
Inputs, assumptions and the expected result
The original synthetic source PDF contains one page, two logical text fields and one embedded text file. The declared field values are case_id = SYN-014 and amount = 137.50. The attachment contains matching synthetic evidence; no real person, transaction or customer is represented.
A local script created two outputs using Python 3.12.14 and pypdf 6.10.0. One cloned the whole document. The other deliberately copied only its page. ReportLab 4.4.9 created the original fixture; PyMuPDF 1.26.6 rendered all three PDFs at 144 dpi with annotations enabled.
The expected success condition was explicit: preserve both logical fields and their values, preserve the embedded file's byte checksum, and retain the page appearance. The page-only output was a deliberately lossy negative control, not a claim about a commercial application's migration behaviour.
| Observed check | Source | Whole-document clone | Page-only control |
|---|---|---|---|
| Pages | 1 | 1 | 1 |
| Logical fields returned by the parser | 2 | 2 | 0 |
| Visible field widgets with values | 2 | 2 | 2 |
| Embedded files | 1 | 1 | 0 |
| Changed rendered pixels versus source | — | 0 | 0 |
The clone retained the expected values and attachment checksum. The page-only control retained visible widgets, including their values and appearances, while losing the logical field tree and embedded file. Both output renders matched the source pixel for pixel in this environment. The saved results include file hashes and observed structures; the compatibility matrix separates completed checks from proposed cases.
What the results establish
This demonstrates why visual comparison alone can miss document-level loss. It does not show that all page-copy methods fail, that the remaining widgets cannot be interacted with in any viewer, or that a particular supplier has a defect. No human form-entry task, signature validation, XFA processing, script execution, accessibility assessment or encrypted-document workflow was performed.
Current online pypdf documentation may describe a later release. The observed result belongs to the explicitly recorded local version and fixture, which remain available for inspection and reproduction.
Classify functional and visual defects
Missing data, broken behaviour and rendering differences
Evaluate three dimensions independently. Structural checks ask whether the necessary objects, values and attachments survived. Behavioural checks ask whether the user can complete the required task. Visual checks ask whether the output presents the expected content. A pass in one dimension cannot erase a failure in another.
For this fixture, missing embedded evidence is a blocking failure if the submission workflow requires that evidence. Missing logical fields also fails the declared preservation requirement, even though their visible appearances remain. A different workflow that intentionally produces a flattened reading copy would need a different expected result and a clearly identified derivative.
Record defects with source and output hashes, exact reproduction steps, affected task, severity and observed consequence. Avoid broad labels such as “bad PDF”. State, for example, that the expected attachment cannot be enumerated in the generated output, then retain the parser result and independently inspect the file in the intended viewer.
Separate an inconsequential appearance change from missing information. A small line-spacing difference might be acceptable for a reading copy; a clipped digit, hidden warning or broken reading order may be material. Business owners should set those decisions before broad rollout. Human judgement remains necessary where automated checks cannot establish meaning or task completion.
Acceptance checklist for complex PDF compatibility testing for migration
Specialist licences and business-critical failures
Test using the edition, extensions and operating conditions intended for deployment. A capability available only through an evaluator's existing specialist licence should not be credited to the proposed replacement environment without evidence that users will receive it.
Before approving a workflow, confirm that:
- The representative input and its permitted use are documented.
- The exact operation, application version and relevant settings are recorded.
- Structural, behavioural and visual expectations have separate results.
- Required attachments and field values can be recovered after saving and reopening.
- A competent reviewer has checked specialist outcomes such as signatures or accessibility.
- Every blocking defect has a fix, a validated alternative route or an explicit exclusion.
- Original files and the previous working route remain available for recovery.
If a critical specialist case fails, keep that workflow on its validated route while the failure is investigated. Preserve the failed output rather than overwriting it with a successful retry. A workaround should name who performs it, how mistakes are detected and which documents are eligible; “users can manage manually” is not an acceptance result.
Approve a bounded migration scope
Evidence-backed supported and excluded workflows
Write the decision in terms of demonstrated tasks. An approval might cover reading and annotation of a defined document set while withholding form completion and signed technical submissions until those cases pass. Such a decision is useful only if routing controls keep excluded documents out of the new process.
Hand over the matrix, fixtures, outputs, defect records and accepted limitations together. Retest when the software build, document generator, form design or signing arrangement changes. Include newly discovered feature combinations rather than simply rerunning an unchanged easy sample.
The local fixture provides a starting control for checking whether your evaluation looks beyond page appearance. Build the controlled pilot around your actual specialist documents and have their owners approve the outcomes before expanding the migration scope.
Test PDF form calculations in a replacement tool
Enter known values in the replacement viewer and check the field’s calculated result after saving and reopening the form.
Read “Test PDF form calculations in a replacement tool”.
Verify embedded attachments in replacement PDF software
Extract the embedded attachment and compare its file fingerprint with the original to verify that migration preserved its contents.
Read “Verify embedded attachments in replacement PDF software”.
Check annotation compatibility when changing editors
Check the visible annotation and the interactive reply history separately. Preserving a mark on the page does not necessarily preserve the conversation.
Read “Check annotation compatibility when changing editors”.
Record specialist functions requiring retained software
Record the specific mandatory function that a replacement cannot reproduce so retained software seats can be tied to demonstrable work.
Read “Record specialist functions requiring retained software”.
Sources
Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with ChatGPT. Editorial and technical checks by Kairos (Codex). The linked articles were drafted with NotebookLM and independently checked and edited by Kairos (Codex).
