Pull the numbers out of a PowerPoint chart with Docling
Turn a practice slide into Markdown and JSON, then check its chart title and six numbers against the original.
Last updated
Menus and supported features can change. Compare the source-check date below with your current app version.

Someone sends you a slide deck and you need the numbers behind a bar chart. Before estimating each bar by eye, find out whether the slide contains an editable chart. If it does, the values that draw the bars may be stored inside the deck. This exercise uses one fictional market chart and gives you two files: something you can skim and something you can inspect for the underlying numbers.
Docling is an open-source document converter. This technique is handy when you want to check figures or reuse them in a report. It will not reproduce the original slide design. The instructions follow Docling 2.155.0’s official documentation and source. I did not run this conversion for the article; the values below are the reference for checking your own output.
1. Know what the original says
Download the practice PowerPoint and place it in a fresh folder, such as docling-chart-practice in Documents. If you have PowerPoint, open the deck and look for Items sold above the chart. The illustration on this page is a visual reference made from the practice numbers. It is not a screenshot or a Docling result. You can still do the exercise without PowerPoint by using this table:
| Day | Notebooks | Stickers |
|---|---|---|
| Friday | 12 | 8 |
| Saturday | 19 | 14 |
| Sunday | 15 | 11 |
Weekend market is the slide title; Items sold belongs to the chart. Keep that distinction in mind when you check the exported files. For your own deck, see whether the chart can be selected and its data edited in PowerPoint. A screenshot of a chart may look identical on the slide, but it will not necessarily contain the underlying values.
2. Set up a separate Python environment
Use Python 3.12 for this exercise. Open PowerShell on Windows or Terminal on macOS or Linux. Type cd, a space, and your practice folder’s full path in quotes, then press Enter. For example, use cd "C:\Users\YourName\Documents\docling-chart-practice" in PowerShell after substituting your actual path. Type dir on Windows or ls on macOS or Linux. Make sure market-chart.pptx is listed before continuing.
Windows PowerShell
py -3.12 -m venv .venv
.\.venv\Scripts\python.exe -m pip install "docling==2.155.0"
.\.venv\Scripts\python.exe -m pip show docling
macOS or Linux
python3.12 -m venv .venv
.venv/bin/python -m pip install "docling==2.155.0"
.venv/bin/python -m pip show docling
The .venv directory keeps the exercise’s software separate. Leave your deck outside it. The last command should report Version: 2.155.0. If the first command cannot find Python, use the official Python download page, reopen the terminal and return to the practice folder. The installation needs internet access. The conversion command below does not use an API key or name a remote server.
3. Ask for two output formats
Make an empty folder named out inside the practice folder. Enter the command for your operating system:
.\.venv\Scripts\docling.exe convert "market-chart.pptx" --to md --to json --output out
.venv/bin/docling convert "market-chart.pptx" --to md --to json --output out
Each --to asks for a format. Markdown is readable as text; JSON keeps labeled fields and nested data. --output out gives both files a destination. When the prompt returns, look in out for market-chart.md and market-chart.json. Keep your original presentation so you can go back to it when a figure looks odd. Official CLI reference
4. Reopen the files and check the chart
Open the Markdown in a plain text editor and search for Items sold. Use it to skim the slide’s content. For the numbers, open the JSON in the same editor and search for tabular_chart. That is the chart metadata field named in the official documentation. Look for the category and series labels near the values. Start with Saturday: the Notebooks value should match 19, and Stickers should match 14. Then match the other two days to the table above.
Do not stop when the editor finds the number 19 anywhere in the file. Check the day, series and number together. If the deck labels a bar with a rounded number and the underlying data has a more precise value, record which one you copied. That makes it easier for someone else to check your figures later.
If a value or title is missing
- It looks like a chart, but has no chart data. The author may have pasted a screenshot. Ask for the editable chart or original table rather than guessing values from the image.
- The chart graphic is empty. Docling documents that the picture itself can be empty by default. Check the JSON for values; rendering a chart image is a separate operation.
- Only a linked title disappeared. Version 2.155.0 includes a fix for reading PPTX chart titles linked to cells. Check your version and compare with the deck. The practice chart uses a typed title and does not exercise that particular fix. Change record
- There are no new files. Check the working folder, the
.pptxextension and the error in your terminal. Use an empty output folder so an old export cannot be mistaken for a new one.
You are done when you can close and reopen the exports and match the chart title and all six values. Keep the PPTX for editing and the exports for reading or reuse. For PDFs, continue with the published Docling starter guide.
Sources & further reading
- https://pypi.org/project/docling/2.155.0/
- https://github.com/docling-project/docling/releases/tag/v2.155.0
- https://github.com/docling-project/docling/blob/v2.155.0/docs/reference/cli.md
- https://github.com/docling-project/docling/blob/v2.155.0/docs/usage/advanced_options.md
- https://github.com/docling-project/docling/commit/01f7db4097b6050e691898d6656b537cbf627540