Product Catalogue to CSV or JSON: What Breaks in Conversion and How to Accept the Result

Supplier catalogues arrive as PDFs, spreadsheets and printed price lists. Converting them into a clean tabular dataset fails in predictable places, and every failure is testable before the data is accepted.

A British woman in her thirties at a Manchester office desk comparing a printed product catalogue with a laptop, the screen turned away from view

A supplier catalogue looks like data. It usually is a layout. A PDF places glyphs at coordinates, a spreadsheet stores whatever model someone typed into it, and a printed price list is a picture of both. Converting any of them into a table that can be loaded, joined and compared is a translation between two different ideas of what a row is.

The conversion itself is rarely the difficult part. The difficulty is that most failures produce output that looks correct. A price that moved one column to the right is still a number. A product code that lost its leading zeros is still a code. Nothing raises an error, and every one of these failures is testable before the dataset is accepted.

A PDF is a layout, not a table

A PDF has no way to store a table. It stores text placement: each character is drawn at a position on the page, and what a reader sees as a row is a coincidence of vertical alignment. Unless the file was authored with logical structure tags, which most catalogues are not, the extractor is reconstructing a grid from geometry, and every cue a person reads as structure, such as a rule line, a bold header or an indent, is a hint it has to re-infer.

This is where the characteristic failures come from. A cell that visually spans three pack sizes gets attached to one of them, or duplicated across all three. A two-level header becomes three columns with the same name, or one column of repeated text. A footnote reading "prices per 100 units, excluding VAT" sits in a separate text block, so the extracted table is numerically right and systematically wrong in its unit.

A scanned catalogue is a harder case again. There is no text layer at all, only pixels, so character recognition has to guess every character before the table problem even starts. A lost decimal point turns 1.12 into 112, which is a plausible-looking number in a price column and will survive any check that only asks whether the field is numeric.

A spreadsheet fails differently: it converts values without asking

A spreadsheet file carries real structure, so extraction is easier, and a different set of failures appears. The first is merged cells. A merge stores one value in its top-left cell and leaves the covered cells empty, so a category merged down forty rows arrives as present on the first row and missing on the other thirty-nine. One merge turns a complete column into a two-and-a-half-percent column.

The second is silent conversion. A widely used spreadsheet keeps fifteen significant digits, so a twenty-digit product identifier is rounded at the fifteenth digit and may be displayed as 1.23457E+19. Opening a file by double-clicking converts 00123 into 123 and text such as JAN1 into a date. None of this is a conversion error in the usual sense; the damage happens in the display, before anyone has inspected the file, and the safe path is to import with the identifier columns typed as text rather than to open the file directly.

The third is hidden content. Hidden rows, hidden columns and extra sheets are invisible in the printed version of the same file but present in the data, which is why row counts between the PDF and the spreadsheet can disagree for reasons that have nothing to do with conversion quality.

The failures that look like valid data

Duplicate keys survive conversion because the source catalogue has no stable identifier. A supplier sells a hex bolt in zinc and the same bolt in stainless; if the finish lives in a separate attribute and the supplier code is identical for both, the converted table has two rows with one key. A uniqueness test on the code fails; a uniqueness test on nothing passes. The fix is not deduplication but deciding that the key is the code plus the finish, or that the supplier code is not a key at all.

Variants collapse in the same way. A catalogue row often represents a family: one description, one starting price, and a size run in the description text. Flattened into a single row, that family cannot be ordered at a specific size, and a boot listed in UK sizes 6 to 12 and EU sizes 39 to 47 ends up with both systems in one column that nothing can filter or compare.

Units are the failure no table format protects you from, because a plain table has nowhere to record a unit of measure. It lives in the column name, in a footnote, or nowhere. Three problems follow: mixed systems in one column, such as millimetres and inches; implicit units stated once in a header that may not survive the trip; and prices that mean per unit on one row and per pack of twelve on the next. In the UK both systems are still legally defined, and the pound is exactly 0.45359237 kilograms, so a conversion that produces 0.45 is not wrong by accident; it is a rounding policy that has to be declared.

Locale formats are the quietest failure. The same digits mean different numbers: 1,234.56 in the UK and the US, 1.234,56 across much of Europe, 12,34,567.89 in India. The string 1.234 is either a thousand and a bit or one point two three four, and without a declared convention the answer is unknowable. Dates carry the same ambiguity: 03/04/2026 is two different days depending on which side of the Atlantic wrote it, which is why a year-first format exists.

Prices carry a legal question as well. In the UK a displayed selling price includes VAT, while trade quotes are normally exclusive of VAT, and the standard rate at the time of writing is 20 percent. A supplier can therefore publish two legitimate numbers for the same item, and a price column with no VAT flag is ambiguous on every row. A VAT column that is sometimes a rate, sometimes an amount and sometimes a letter is worse than no column at all.

Encoding and delimiters round out the list. The pound sign is two bytes in UTF-8 and one byte in the older Western encoding, which is how £ appears. An invisible byte-order marker at the start of a file can attach itself to the first column name, so a column that visibly exists is reported as missing. In CSV, a comma inside a product name shifts every later field one column to the right, a line break inside a description splits one record into two, and a file saved with semicolons because the authoring machine was set to a comma-decimal locale will not split at all. CSV itself is a convention rather than an enforceable standard, so none of this raises an error anywhere.

What a defensible specification contains

A specification that survives contact with real catalogues declares four tiers per column, not two: the key, which must be present and unique; required fields, whose absence rejects the row; expected fields, whose absence is reported as a completeness gap but does not reject the row; and optional fields. The middle tier is the one people skip, and it is the one that separates a row that is unusable from a row that is usable but incomplete.

Three identifiers are worth keeping, because they have different lifetimes: the supplier code, which is stable only as long as the supplier says so and is often reused when a product is replaced; the buyer-side identifier, which survives a change of supplier; and a content fingerprint of each row, which shows whether a row actually changed between two deliveries. The supplier code should never be the only key.

Controlled vocabularies do the rest. Any field with a finite answer set ships its allowed values, so that stainless steel, stainless and S/S map to one value instead of three. And because a plain table has no defined way to record where a row came from, provenance has to be added explicitly: source file, source page, source row, extraction method and a timestamp, one set per row. A converted catalogue is only as trustworthy as its row-level provenance.

How to accept a converted catalogue

Acceptance starts with a count. Every row in the source should appear exactly once in the output, with an explicit count of rows added or dropped and why. The count has to come from an independent path: if the same script produced the output and counted the source, a systematic miss is invisible on both sides. If the row count cannot be reconciled against the source by an independent method, the dataset is not ready for acceptance testing.

The next tests are mechanical and cheap, so they run on every row: key uniqueness, counting distinct keys against total rows and reporting which keys collide and how many rows each collision covers; required-field presence; field count per record; type validity; and a check for cells beginning with =, +, - or @, which spreadsheet software treats as formulas and which turn a product description into a live formula.

Referential checks have to run in both directions. Every product category must exist in the category list, and every category must have at least one product. The second direction is the one people skip, and it is the one that catches a whole section of the catalogue that failed to extract: a one-directional test passes on a dataset that lost a third of its rows, because everything that remains is still valid.

Sampling covers what automation cannot. A uniform random sample is not enough, because extraction quality is uneven across a document and a single bad page in a two-hundred-page file is under-weighted. A better design stratifies by page, adds a targeted sample of every distinct failure pattern found, such as the first merged cell, the first footnote-carried unit and the first mixed-unit column, and verifies every row the extractor itself flagged as low-confidence.

The strongest single check is a semantic round-trip: regenerate a table view from the converted output and compare it with the source page by eye. A format round-trip, which reads and rewrites the file, catches quoting and encoding bugs, but only the semantic version catches the price that moved into the pack-size column, because that output is internally consistent and externally wrong.

Finally, the error rate has to be defined before it is measured. Two numbers belong in the report, always together: the cell error rate, which is failing fields divided by fields checked, and the record error rate, which is rows containing at least one error divided by total rows. The record rate predicts usability and is always the higher of the two. Both need their denominator stated, and both should be broken out per column, because an aggregate hides the column that is mostly wrong.

Questions to settle before conversion starts

  • Which file is authoritative when the PDF and the spreadsheet disagree?
  • What is the key, and is it unique on its own or only in combination?
  • Does the price include VAT, and is it per unit or per pack?
  • What are the units, and where are they recorded: in the column name, in a column, or in a footnote?
  • Which date and number conventions are declared, and what is the encoding?
  • How will the row count be reconciled, and by which independent method?
  • How will a row be traced back to a page and a line when a value is disputed?
  • What happens to a row that fails a check: rejected, flagged, or delivered with a confidence value?

None of these failures is exotic. They are the normal behaviour of formats designed to display information rather than to carry it. What separates a usable conversion from a plausible one is not the extraction tool but the specification and the acceptance tests that run against it.

A spreadsheet that opens cleanly and a dataset that validates are different things; only the second can be joined to other systems without manual repair. For related material, see text data, the full dataset briefs, the technical reference, and dictionary data for the same keying problems in another structured format.

A British man in his forties holding a printed catalogue in a warehouse office beside crates and sample bins

Questions buyers ask

Can a PDF catalogue simply be exported to CSV?

No. A PDF stores text placement, not table structure, so the export is a reconstruction from geometry. Cells that span several columns, multi-level headers and unit footnotes are where the reconstruction fails, and the output usually looks correct.

What is the first acceptance test for a converted catalogue?

An independent row-count reconciliation: every source row appears exactly once, counted by a method that does not share code with the converter. Everything else is measured on a dataset that this test has already bounded.

Why do product codes lose their leading zeros?

Because spreadsheet software converts number-looking text automatically when a file is opened: 00123 becomes 123, and long identifiers are rounded at the fifteenth significant digit. Import the file with the identifier columns typed as text instead of opening it directly.

Should a converted price include VAT?

It depends on the buyer, so the column has to say. In the UK a displayed consumer price includes VAT while trade quotes normally exclude it, and the standard rate is 20 percent. The failure mode is a price column with no flag, where the tax treatment of every row is unknown.

More insights

  • Handling a data batch that failed acceptance

    5 min read

    A failed batch is a decision with three possible outcomes, and the expensive mistake is choosing the wrong one. How to measure the failure, and what to agree beforehand.

    • Quality
    • Procurement
  • When to stop collecting data

    4 min read

    More data stops helping before it stops costing. The signals that the curve has flattened, and the stopping rule that makes the decision mechanical.

    • Quality
    • Procurement
  • Avoiding scope creep in a data project

    4 min read

    In a corpus project every property is additive, so requests arrive continuously and each one looks small. The fix is a classification step before any pricing.

    • Procurement
    • Quality

Submit a sourcing request

Tell us the language, the hours, and what the data needs to look like. You will get a real number and a real timeline, not a range. If we cannot source it well, we will tell you that instead.

  • Pilot batch before the full run, so problems surface early.
  • Consent documentation delivered with the data.
  • No medical or clinical data. No recorded telephone calls.

We reply within two business days. Your details are used only to answer this request. See our privacy policy.

  1. You send the spec Language, hours, recording conditions, and the deadline.
  2. We reply within two business days A real number and a real timeline, not a range.
  3. You approve a pilot batch A small run first, so problems surface before the full order.
  4. Full run, then delivery with documents Audio, transcripts, and the consent record for every speaker.
Contact

Talk to a human

Send a specification and we will come back with a real number and timeline.

Submit a sourcing request

Or use the contact form