Skip to main content

How do you turn PDF batch records and CoAs into Parquet or SQL?

Converting legacy PDF batch records and supplier Certificates of Analysis (CoAs) into Parquet or SQL tables requires retaining the original PDF with SHA-⁠256 checksums, attaching page-level bounding-box coordinates to every extracted value and routing low-confidence or out-of-spec fields through human verification. Under FDA Data Integrity guidance and 21 CFR 211.180, analytics pipelines must never discard source provenance when building CPV or APR datasets.Checked against its sources on 4 December 2026. How these answers are made

1Why trapped PDF batch records and vendor CoAs block CPV and data science.

Most biopharma sites sit on 5 to 15 years of critical manufacturing history locked inside scanned paper batch binders, CDMO PDF batch dossiers and supplier CoAs formatted differently by every vendor. When MSAT or biostatistics teams need to run Continued Process Verification (CPV), Annual Product Quality Reviews (APQR) or raw-material lot correlation models, analysts waste weeks manually re-typing values from PDFs into Excel, introducing transcription errors and zero audit lineage.

Under FDA’s Data Integrity guidance (2018), true copies and derived electronic data used in GMP decisions must preserve complete content, metadata and verifiable linkage back to the original source record.1 Under 21 CFR 211.180(e), annual product evaluations must accurately review representative batches, process trends and specification compliance across the review period.2 EU GMP Annex 11 section 7 further requires data integrity checks whenever records are converted or migrated across storage formats.3

2The 5-layer ALCOA+ PDF-to-⁠Parquet / SQL extraction pipeline.

Table 1. ALCOA+ engineering controls for turning legacy PDF batch records and supplier CoAs into Parquet and SQL tables.
Pipeline stageTechnical & GxP controlFailure mode eliminated
1. Immutable PDF ingestStore every source PDF (batch dossier or vendor CoA) in object storage with immutable source_file_id, sha256_hash, receipt timestamp and supplier/lot metadataUnverifiable extractions where nobody can locate which exact PDF revision produced a database row1
2. Layout-aware OCR & vision extractionParse tables, handwritten entries, units, <LOQ censored flags and sign-off dates while capturing (page_number, x, y, w, h) bounding-box coordinates and extraction confidence per fieldFlattening multi-column CoA tables or dropping < 0.05% limit-of-quantitation prefixes into bare strings
3. Deterministic schema & unit normalizationEnforce typed Parquet/SQL schemas (numeric_value, raw_text, unit, censor_flag, spec_min, spec_max, method_ref) with explicit unit-conversion lineageMixing mg/mL and g/L or % w/w and % v/v inside a single CPV column
4. Confidence-gated human verificationAuto-flag every low-confidence OCR read, crossed-out handwritten correction, missing date or out-of-specification figure for side-by-side human review against the cropped PDF regionSilently injecting an OCR misread (1.8 read as 7.8) into a stability trend or CoA acceptance decision
5. Versioned Parquet / SQL analytics martPublish append-only, partitioned Parquet datasets or read-only SQL views carrying extraction_model_version, verified_by, verified_at and source_file_id on every rowNon-reproducible APR/PQR charts when an extraction pipeline is later re-run on updated schemas

3Separating historical PDF backfills from live structured capture.

PDF extraction is the fastest bridge to unlock historical batches and incoming third-party supplier CoAs, but it should never remain your permanent architecture for internal manufacturing:

  • Historical backfills & external CDMO/supplier CoAs: Run the bounding-box verified PDF-to-⁠SQL pipeline so 10 years of legacy lots and every vendor CoA join cleanly into your CPV and raw-material correlation tables (AI CoA verification and handwritten batch record OCR).
  • New internal manufacturing & QC runs: Capture steps natively in typed electronic batch records and LIMS fields from day one so zero OCR step is needed going forward (Python, SQL & REST API GMP data).

4How it runs in Seal.

Seal lets Neil extract supplier CoAs and scanned legacy batch records into typed tables with page-level citation links and mandatory human sign-off, while storing all new manufacturing and QC records as clean structured data queryable via Seal’s v3 REST API and Python SDK. Explore CoA automation in AI CoA review and verification and compare analytics platforms on best bioprocess data analytics & CPV software.

AQuestions and answers

Is AI or OCR extraction of supplier CoAs acceptable under FDA GMP rules?

Yes, provided the original PDF CoA is retained as an immutable source record, extracted values preserve exact source-page traceability, and a qualified person verifies flagged or release-critical values before QA disposition.

How should censored lab results like <0.05% or Not Detected be stored in Parquet or SQL?

Store both the exact verbatim string (raw_text) and structured columns (censor_operator, numeric_threshold, unit) rather than converting <0.05% to zero or stripping the inequality sign.

Why store bounding-box coordinates alongside extracted batch values?

Bounding-box coordinates let a QA reviewer click any number in a CPV chart or CoA table and inspect the exact highlighted region on the original PDF page in seconds instead of hunting through a 200-page scan.

References3 sources

References

  1. 1Data Integrity and Compliance With Drug CGMP: Questions and Answers, Guidance for Industry, FDA, December 2018. https://www.fda.gov/media/119267/download (read 4 December 2026)
  2. 221 CFR 211.180, General requirements, paragraph (e), eCFR. https://www.ecfr.gov/current/title-21/section-211.180 (read 4 December 2026)
  3. 3EudraLex Volume 4, Annex 11: Computerised Systems, European Commission, January 2011, section 7. https://health.ec.europa.eu/system/files/2016-11/annex11_01-2011_en_0.pdf (read 4 December 2026)

See your process in Seal.

Bring a procedure or a recurring problem. See how your team configures it with Neil and improves the next run.