A searchable classroom packet is easier to read as one PDF, but that convenience becomes a bad storage decision if the assembled file replaces the signed documents from which it was made. TL;DR: deliver separate originals in a ZIP when the recipient needs the individual signature evidence; deliver one merged PDF when the recipient needs a continuous reading and search experience. For an edtech OCR workflow that needs both, retain the original bytes and publish a separately identified searchable derivative. Treat the delivery choice as an evidence question before treating it as a packaging preference.
Keep originals intact.
Consider a proposed packet containing 3 signed records: a student consent form, an assessment submission, and an accommodation acknowledgment. The job is to turn their scanned pages into searchable text without making a teacher, records officer, or later reviewer guess which document was signed and which document was generated by OCR. Three is an example input count, not a capacity limit. The design below uses that example to make the acceptance criteria explicit.
What must survive when scanned records become searchable?
Start with the distinction between a visible signature on a scanned page and a PDF digital signature. A visible mark is page content; a digital signature has a defined validation mechanism. The PDF specification describes digital signatures in terms of signed byte ranges. A successful OCR result, a familiar filename, or a signature image that still looks right cannot establish that a newly assembled document has the same cryptographic status as its input. ISO 32000-2 is the relevant reference for the PDF mechanisms discussed here.
That distinction sets the constraint. Preserve each received file as an original, record its provenance, and make OCR and assembly explicit transformations. Do not promise that an existing signature transfers to the combined output. If the output itself needs signing, define a separate signing and validation step for that output, with its own signer and purpose.
The conservative acceptance rule is deliberately narrow: the original file must remain retrievable byte for byte, and the system must be able to identify the exact inputs used to produce each searchable result. This is a proposed engineering rule, not a claim that a particular archive format establishes legal admissibility. Institutional requirements for evidence, access, and retention still need an owner.
A ZIP is a delivery container.
It is useful here because the recipient can receive distinct files, but selecting that container does not establish who signed a document, whether a signature validates, or whether the packet is complete. Those are separate checks. Conversely, a merged PDF can be a good reading artifact even when it is unsuitable as the sole record of the source documents. Calling either format an audit trail skips the work that matters.
Derive the searchable packet from retained evidence
Use an intake record to assign an internal identifier to each original and retain a reference to the stored bytes. Keep the received filename as metadata rather than letting it determine identity. For the example packet, the consent form and assessment could arrive with the same filename; an assembly process that uses only that name would leave an ambiguous audit record even if every page rendered correctly. This is a failure case to test, not a reported incident.
Next, produce OCR derivatives as new objects. Record the original identifier, transformation configuration, processing status, and output identifier together. A reviewer should be able to distinguish a rerun that changes recognized text from a retry that merely republishes an already accepted result. Define that distinction before enabling automatic retries, because silently replacing a search index entry can otherwise obscure which text a reviewer actually saw.
For the combined reading copy, maintain an ordered mapping from each output page to its original document and source page. Keep that mapping with the build record. The mapping is a design requirement: a search hit on a student's accommodation acknowledgment should lead back to its source record, even when the reading packet places that page after the assessment. OCR text is a derivative interpretation, so expose a way to inspect the source scan when the recognized text is disputed.
The following Python example shows only the assembly plan. It deliberately does not parse PDFs, validate signatures, or implement storage. Keeping those operations outside this small function makes the boundary reviewable: it plans a reading copy while retaining original references.
def plan_packet(packet_id, documents):
if not documents:
raise ValueError("A packet needs at least one document")
original_ids = [doc["original_id"] for doc in documents]
if len(original_ids) != len(set(original_ids)):
raise ValueError("Duplicate original identifiers")
reading_inputs = []
for position, document in enumerate(documents, start=1):
if document["ocr_status"] != "accepted":
raise ValueError("OCR review is incomplete")
reading_inputs.append({
"position": position,
"original_id": document["original_id"],
"derivative_id": document["derivative_id"],
})
return {
"packet_id": packet_id,
"original_ids": original_ids,
"reading_inputs": reading_inputs,
"signature_validation": "separate_required_step",
}
The status gate is a local policy choice. An institution that permits provisional OCR could use a different rule, but it should identify provisional text to its users and preserve the decision in the build record. There is no evidence here for a universal OCR confidence threshold, page limit, or safe worker count; set those through representative document tests and the capabilities of the chosen processing components.
Publication needs its own boundary. Stage the originals list, reading copy, and page mapping, verify that they refer to the same build, and expose the completed packet only after the required checks succeed. In a storage layer without a transaction spanning these objects, a proposed approach is to publish a completion record last and require readers to resolve packets through it. This works only if the selected store's visibility and consistency behavior supports that protocol; test the actual behavior rather than assuming that a successful upload makes every related object visible together.
Should you merge packets into one PDF or deliver separate files in a ZIP?
With the original records retained, the decision becomes more precise. Ask what the recipient must do with the delivered packet, and which parts of the evidence record must accompany it.
| Recipient requirement | One merged PDF | ZIP of separate files |
|---|---|---|
| Read and search the classroom packet in order | Use the assembled OCR reading copy; verify page order and searchable text | Include clearly ordered derivatives if this workflow is required |
| Review individual signed originals | Supply originals through an additional delivery path | Include the retained originals and identify them explicitly |
| Trace a search result to its source scan | Supply the build's source-page mapping | Supply a manifest linking derivatives to originals |
| Correct OCR after review | Publish a new identified reading copy | Publish a new identified bundle or derivative set |
| Decide whether signatures validate | Validate the relevant signed file separately | Validate each relevant signed file separately |
The table describes proposed delivery policies, not automatic guarantees of either format. In particular, putting files in a ZIP does not make a manifest complete, and putting pages in a PDF does not make their order correct. Both require checks against the expected input list.
The main limitation of a merged PDF is its role as a derivative: it isn't suitable as the sole delivery artifact when recipients must inspect the individual signed originals. Use separate original files for that task. The trade-off with a ZIP is the additional navigation and manifest checking required by this design; it doesn't replace the continuous reading copy a teacher requested. These limitations are reasons to define two artifacts when the recipient needs both tasks, rather than forcing either format to carry an unsupported promise.
For the 3-record example, choose the ZIP if the records officer must receive and inspect each original. Choose the merged PDF if a teacher needs one searchable reading copy and has an authorized route to the retained source records. If both obligations belong to the same handoff, a bundle containing clearly distinguished originals and the reading derivative is a reasonable design. Make the recipient's task explicit; an unexplained folder of near-identical filenames only relocates the ambiguity.
Storage and operational effort belong in this comparison, but price is a poor substitute for the evidence requirement. Retaining originals plus OCR derivatives creates more objects to track; rebuilding a merged copy adds processing work. Measure retained bytes, rebuild frequency, and review effort in a pilot. No defensible cost estimate follows from the packet format alone.
Roll out with an evidence acceptance test
Introduce the new delivery path alongside the existing one for a controlled sample, with an institution-approved selection of scanned records. Verify original-byte retrieval, input completeness, page mapping, OCR review status, and the recipient's ability to distinguish originals from reading copies. Include duplicate filenames, reordered input pages, interrupted publication, and a failed OCR task. A failed required input should leave the packet unpublished under this policy, with a specific reason available to the operator.
Track missing inputs, rejected OCR results, validation outcomes, and incomplete builds as separate events tied to a packet identifier. Keep student text out of routine operational messages. This gives support staff something actionable without requiring them to reconstruct a sensitive classroom record from logs.
Expand delivery only after the designated reviewers can follow a search result back to the intended original and retrieve the expected signed file. Preserve the previous publication reference during rollout so that a new derivative can be withdrawn without losing the source record.
The decision rule is compact: use one PDF for a continuous reading task, use a ZIP for a handoff of distinct originals, and retain an explicit relationship between the two whenever OCR creates searchable text. The audit obligation determines what must survive; the recipient's task determines the package.
Sources
References
- ISO 32000-2, Portable Document Format: the PDF specification, including its digital-signature mechanisms. https://www.iso.org/standard/75839.html
Top comments (0)