ConradBI home

Home  /  How-to  /  Bring in your data

Bring in websites and PDFs

Turn a supplier's price list, on a web page or in a PDF, into rows you can build on, whether it is a neat table or a printed report.

The short version

  • A Website Acquisition reads a web page and a PDF Acquisition reads a PDF. Each works in one of two modes.
  • In the extract mode, ConradBI finds the tables itself: Find tables lists them and you pick the ones you want.
  • In Ask Conrad mode, for data that isn't a plain table, Conrad reads the page or PDF with you and writes a recipe: plain rules for turning it into rows.
  • The recipe is saved with the element and runs with no AI, on your computer or on a server. Conrad is only there while you work it out.
  • What Conrad may see decides whether Conrad reads the real text or only its shape. Test shows what the recipe reads before you save.
Back to How-to guides
In this guide
  1. What it is
  2. Before you start
  3. A table on a web page
  4. Data outside a table: Ask Conrad mode
  5. The recipe runs with no AI
  6. What Conrad may see
  7. A table in a PDF
  8. A printed report: Ask Conrad mode for PDFs
  9. When something goes wrong
  10. Reference

What it is

Some data never arrives as a file of rows. A supplier publishes its price list on a web page, or sends it as a PDF. These two acquisitions turn such pages into tables:

  • Website Acquisition reads a web page from its address.
  • PDF Acquisition reads a PDF file, a folder of PDFs with the same layout, or a PDF that a program writes.

Each has two modes:

Mode Use it when How it reads
Extract tables (web) or Extract a table (PDF) The data is laid out as a table ConradBI finds the tables, and you pick one
Ask Conrad The data is a list of cards, a product grid, a printed report or a statement Conrad works out a recipe with you, and the recipe reads it

The recipe is the important part. Conrad, ConradBI's AI assistant, reads the page while you set the element up. What it leaves behind is a set of plain rules, saved with the element. Every run after that follows the rules on its own, with no AI involved, so the same page gives the same rows every time.

Before you start

You need:

  • A project open in ConradTool, in Developer Mode, where the Elements tree, the Editor and the Services panel are.
  • For a web page: its address, reachable from your computer and from any computer that processes the project.
  • For a PDF: a PDF with real text in it. A scanned page is a picture, and can't be read.
  • For Ask Conrad mode: Conrad set up for you in ConradTool. See Ask Conrad.

This guide reads a supplier's price list from the running example. It comes two ways: as a web page, and as Price list.pdf. Both list Product Code, Product Name and Unit Price. The elements are called Price List Web and Price List PDF.

A table on a web page

A Website Acquisition is a container. It reads nothing itself: each table you pick becomes a Website Table element of its own under it, with its own columns and its own run. This takes about five minutes.

  1. In the Elements tree, click the + on the Acquisitions row and pick Add Website Acquisition.
  2. In Add element, type Price List Web under Name and click OK.
  3. Under Page, type or paste the page's address in URL.
  4. Under Mode, leave Extract tables selected.
  5. Under Tables, leave Use a header row selected if the table's first row holds its column names. Pick Define the column names if it doesn't, and the columns are named Column1, Column2 and so on, for you to rename.
  6. Click Find tables. ConradBI downloads the page and lists every HTML table on it, with its #, its Rows and Cols, and a Header preview of its first column names. Stop gives up on a slow page.
  7. Find the price list by its Header preview and tick Include on its row.
  8. Type Prices in its Name cell. A table you don't name is called Table 1, Table 2 and so on, by its place on the page.
  9. Select the row. Its columns show under Selected table columns. Click Determine types, check each Data Type, and untick Include for any column you don't need.
  10. The bar above the list says the child tables are out of sync and names the one it will create. Click Update child tables.
  11. A Website Table called Price List Web / Prices appears under Price List Web in the tree. Save Price List Web.
  12. Process the Website Table: open it and click Process current in the Services panel, or use Process all. Its rows show on the Data tab.

The Website Table downloads the page again on every run, so it always reads the page as it is then. It finds its table by its first row — the headers you picked it by — so a table added above yours changes nothing. If the headers change, the element's status in the Processor says which table was read; click Find tables and then Update child tables to pick it up again.

ConradBI reads the HTML the site sends and runs none of the page's scripts. Data that a page draws with JavaScript after it loads isn't in that HTML, and neither mode can read it. Ask the supplier for a file instead.

Only Update child tables changes the children, never saving. Tick or untick a table, rename one or change its columns, and the bar stays in the warning colors until you click it. A child that changes keeps its identity, so whatever is built on it stays bound, and removing a child asks first.

Data outside a table: Ask Conrad mode

Many pages show their data as cards, tiles or a list, not as an HTML table. Find tables finds nothing there. In Ask Conrad mode, Conrad reads the page with you and writes a web recipe for it.

  1. In Price List Web, under Mode, pick Ask Conrad. The editor shows the Conrad, Recipe and Preview groups.
  2. Under What Conrad may see, pick The text as it is or Its shape only. See What Conrad may see.
  3. Click Ask Conrad to read this page. A request to read the page goes into Ask Conrad, ready for you to send. Nothing is sent until you send it.
  4. Send it. Conrad reads the page's HTML, a part at a time, with its scripts and styling taken out. It asks you which values you need, for example the product code, the name and the price of each product.
  5. Answer its questions. Conrad writes the recipe onto the element and tests it as it goes. The recipe arrives as an unsaved change, just like one you made, and the editor shows it.
  6. Under Recipe, check the columns the recipe gives, each with its type.
  7. Under Preview, click Test. The recipe runs over the page on your computer and shows the first 200 rows. The line beside the button says how many rows it read, and what didn't convert.
  8. When the rows look right, click Update child tables. The recipe's one table becomes a Website Table, named Price List Web / Extracted unless the recipe names it otherwise.
  9. Save Price List Web, then process the Website Table.

A web recipe says which part of the page is one row, and for each column, where its value sits inside that row, which attribute to take if it isn't the text, a pattern to cut the value out, and its type. You don't need to read it. It is there under Recipe (JSON) if you want to adjust it by hand: edit it, then click Apply. Apply puts your edit into effect and runs Test again.

The Recipe group's columns are the ones the child table gives. To change them, ask Conrad, or edit the recipe.

Switching Mode changes which children the element asks for: the checked tables in one mode, the recipe's table in the other. The bar says what will change, and removing a child asks first.

The recipe runs with no AI

A recipe is plain rules. Once it is written, Conrad isn't needed:

  • It is saved with the element. On a Website Acquisition, it is also copied onto the child table.
  • Every run reads with the recipe alone, on your computer or on a server that processes the project, with no AI involved. The same page gives the same rows.
  • Test and the editor's preview read on your computer, and the editor sends nothing anywhere.
  • If the page changes its layout, the recipe may stop finding its rows. Ask Conrad again, and it adjusts the recipe with you.

What Conrad may see

While you work out a recipe, Conrad reads the page or the PDF. What Conrad may see decides how much of it:

Choice Conrad sees
The text as it is The document as it is, a part at a time, and the first rows the recipe read. Nothing else leaves your computer
Its shape only The layout with every letter shown as a or A and every digit as 9. Spacing, punctuation and markup are real, the values aren't. No value leaves your computer

On a web page, tag names, classes and ids are always shown as they are, because the recipe is written from them. Conrad never changes this setting. Only you do.

Its shape only suits a document with figures you'd rather keep to yourself. The recipe works the same either way, because it is written from the layout, not the values.

A table in a PDF

Unlike a Website Acquisition, a PDF Acquisition reads its table itself, one table per element. For a second table in the same PDF, add a second PDF Acquisition.

  1. Add a PDF Acquisition called Price List PDF.
  2. Under PDF, leave Source set to File, click Browse… next to File path and pick Price list.pdf.
  3. Under Mode, leave Extract a table selected.
  4. Under Table, click Find tables. ConradBI reads the PDF's text and lists each table it finds: a header with rows lined up under it. The line beside the button says how many it found.
  5. Pick the price list in the list. A table is named by its header, such as Product Code | Product Name | Unit Price, and the list shows its Pages, Rows and Columns. A table that runs over several pages is one table, whether or not the header is printed again on each page. Until you pick one, the editor says "Choose a table. None is assumed, so nothing is read until one is chosen."
  6. Check the table under First rows, which shows its first 50 rows as found.
  7. Under Columns, leave Use header row for column names ticked and click Import from header.
  8. Click Determine types, check each Data Type, and untick Include for any column you don't need.
  9. Save, then click Process current in the Services panel.

The table is found by its header, not by its page. When the supplier sends next month's PDF, the element finds the same table in it, even if it moved to another page.

Numbers printed as a report prints them

Price lists and statements print numbers for people: $1,200.50, (45.00) for a negative, 40- with a trailing minus, 12.5%. Determine types recognizes these and types the column Number, or Decimal when any value has a decimal point. When the column loads, each value becomes the number it shows: currency signs and thousands separators go, brackets and a trailing minus make it negative, and 12.5% loads as 12.5.

A column typed Text keeps the text exactly as printed.

A total line that lines up with the table's columns is read as a row. For a PDF like that, use Ask Conrad mode, where the recipe can stop at the total.

A folder of PDFs

Set Source to Folder, give the Folder path, a File filter such as *.pdf, and a Sample file. Find tables lists the sample's tables. Each run reads the same table, found by its header, from every matching PDF, adds the rows together, and adds a FileName column with the name of each row's PDF. A PDF without that table stops the run and names the file.

To read a PDF that a program writes, set Source to Producer Element. See Files a program writes.

A printed report: Ask Conrad mode for PDFs

Some PDFs hold their data without a plain table: a report with a heading per region and lines under each, a statement, a list with totals. Find tables says "No table was found" for them. Ask Conrad mode reads them with a reading recipe.

  1. In Price List PDF, under Mode, pick Ask Conrad.
  2. Under What Conrad may see, pick The text as it is or Its shape only.
  3. Click Ask Conrad to read this PDF. A request to read the PDF goes into Ask Conrad, for you to send.
  4. Send it, and answer Conrad's questions about which values you need. Conrad reads the pages as you allowed and writes the recipe onto the element, as an unsaved change.
  5. The editor is rebuilt on the recipe. Under Recipe, check the columns it gives, with their types. These are the columns that elements built on this one can bind to.
  6. Under Preview, click Test. The recipe runs over the whole PDF on your computer and shows the first 200 rows. The line beside the button counts the rows, the lines read and skipped, and the values that didn't convert.
  7. Save the element, then process it.

A reading recipe is a list of plain rules: skip some lines, start and stop at markers such as a total, keep or drop lines that match a pattern, carry a heading such as a region down onto the rows under it, cut each line into values, and give each value its type. Like the web recipe, it is under Recipe (JSON), where you can edit it and click Apply, and it runs with no AI.

A PDF Acquisition in Ask Conrad mode reads its rows itself. There is no child table and no Update child tables to press.

PDFs that can't be read

Both modes need text in the PDF. The editor and the run say so when there isn't any:

  • A scanned PDF is pictures of pages, with no text: "has no text to read: its pages may be scanned images rather than text." Ask the sender for the original PDF, or for the data as a file.
  • A password-protected PDF can't be opened: "is password-protected, so its text can't be read." Save an unprotected copy, or ask the sender for one.

When something goes wrong

What you see What to do
"Enter a URL first." Type the page's address under URL
"Failed to download/parse: …" Check the address in a browser on the same computer. The site may refuse the request, or need a sign-in ConradBI can't give
"No HTML tables found on the page." The data isn't in an HTML table, or the page draws it with JavaScript. Try Ask Conrad, or ask for a file
The bar says the child tables are out of sync Click Update child tables. Saving doesn't update them
A Website Table loads no rows The page no longer has a table at that place. Click Find tables, tick the table again and update the child tables
"No table was found: nothing in the PDF's text has a header with rows lined up under it." Use Ask Conrad mode for this PDF
"Choose the PDF first - check that the source points at a .pdf file." Pick the PDF under PDF, or a Sample file for a folder
"This PDF has no table headed '…'. Pick one of its tables." The header changed. Pick the table again in the list
Status says "Failed: No table is chosen, and none is assumed." Open the element, click Find tables and pick the table
Status says "Failed: '…' has no table headed '…'." One PDF in the run doesn't have the table. Check that file, or pick the table again
"… has no text to read: its pages may be scanned images rather than text." The PDF is scanned. Ask for a PDF with text, or for the data as a file
"… is password-protected, so its text can't be read." Use an unprotected copy
"… value(s) didn't convert to its type and were left empty." under Test Those values don't fit the column's type. Ask Conrad to change the type, or edit the recipe
Status says "Failed: The reading recipe can't be used yet: …" The recipe has a problem, listed after the colon. Ask Conrad to fix it, or edit the recipe and click Apply
"That isn't a valid recipe: …" after Apply The JSON has a mistake. Fix it, or ask Conrad to write the recipe again
A total shows up as a row Use Ask Conrad mode, and ask for the recipe to stop at the total

Reference

Website Acquisition

Group Field What it does
Page URL The page's address. The icon at its end binds it to an environment variable
Mode Extract tables, Ask Conrad Pick tables yourself, or let Conrad write a web recipe
Tables Find tables, Stop Downloads the page and lists its tables, or gives up on a slow page
Tables Use a header row, Define the column names Names every table's columns from its first row, or as Column1, Column2 for you to rename
Tables Include, Name, #, Rows, Cols, Header preview Tick a table to make it a child, name it, and recognize it
Selected table columns Determine types, Include, Column, Data Type The checked table's columns
Conrad What Conrad may see, Ask Conrad to read this page What Conrad reads, and the request to send
Recipe Recipe (JSON), Apply The web recipe, to adjust by hand
Preview Test, Stop Runs the recipe on your computer and shows the first 200 rows

PDF Acquisition

Group Field What it does
PDF Source File, Folder or Producer Element
Mode Extract a table, Ask Conrad Pick a table found in the text, or let Conrad write a reading recipe
Table Find tables Lists the tables in the PDF's text. The one you pick is the setting
Columns Use header row for column names, Import from header, Determine types, Add column Names and types the columns
First rows The picked table's first 50 rows
Conrad What Conrad may see, Ask Conrad to read this PDF What Conrad reads, and the request to send
Recipe Recipe (JSON), Apply The reading recipe, to adjust by hand
Preview Test Runs the recipe over the whole PDF and shows the first 200 rows

Missing something?

Tell us what you were trying to do and what this guide didn't answer. We update it with every release.

Write to us

What changed in this guide

  • November 21, 2026: Reviewed against ConradBI 1.2.59.
  • October 31, 2026: First edition, written for ConradBI 1.2.52.