Tools,

Image to editable PowerPoint, tested on 10 slide pictures

291 of 302

words editable, with the slide picture kept

Get img2pptx.py

Editable words, and what still shows

10 slide pictures, 302 true words, 1920 x 1080 PNG
Way Editable Still showing Ink match
img2pptx.py 291 4 69.1%
OCRmyPDF, then LibreOffice 285 285 99.6%
LibreOffice PDF import 0 285 100%
Our Actor, then pandoc 290 0 22.2%

Editable: true words in text boxes, in order. Still showing: words Tesseract read after we deleted every editable word. Ink match: how well text and shapes line up with the slide.

OCR text hides behind the picture

OCRmyPDF adds a hidden text layer, and LibreOffice imports it as black text boxes. On all 10 slides, every line but one sits behind the slide picture. That one sits on top, as black text over the slide's own words.

So you can edit 285 of 302 words, but edits behind the picture never show. Delete the picture, and Tesseract reads 271 words in NotoSans, not the slide's fonts.

Four copies of a blue slide. After every editable word is deleted, the OCRmyPDF and LibreOffice copy still shows all its text, and the img2pptx.py copy is almost empty.
Slide 6. Bottom row: every editable word deleted.

img2pptx.py paints out the old text

It reads each slide with Tesseract, paints the letters out of the picture with OpenCV, and puts one text box per paragraph in the same place, size and color.

Table cells and labels side by side get their own boxes. It kept 13 of the deck's 14 bullets.

img2pptx.py

python3 -m venv venv
venv/bin/pip install python-pptx opencv-python-headless pypdfium2
venv/bin/python img2pptx.py slides.pdf deck.pptx

Our Actor gives the words, not layout

Our Apify Actor turns slide pictures and scanned PDFs into Markdown. Its code found 290 of 302 words, and pandoc deck.md -o deck.pptx made plain slides from them. The layout and colors are gone.

The free plan takes 20 pages a run, 50 a month. A scanned page costs $0.006, and pages with a text layer are free.

Try the Actor

How I tested it
  • The deck: 10 slides of our own made-up text, built with python-pptx 1.0.2. Titles, bullets, two columns, a table, dark and color slides, small text, labels in shapes and a quote.
  • LibreOffice 26.8.1.1 drew each slide, and pdftoppm 26.03.0 made 1920 x 1080 pictures. The JPEG set is 1280 x 720 at quality 75. Each set became a PDF of pictures with 0 words of text.
  • Ink match: both slides at 960 x 540 in gray, ink matched within 2 px, as an F1 score.
  • Tesseract 5.5.4, OCRmyPDF 17.13.0 with --output-type pdf, pandoc 3.13, OpenCV 5.1.0, pypdfium2 5.15.2, the Actor's code at commit 5c8f91b0 (build 0.1.100), on a Mac.
  • Not tested: PowerPoint, Acrobat, online converters, real NotebookLM or Canva files, photos of screens.

Questions people ask

Why can I not edit the text after I convert a PDF to PPT?

If each slide in the PDF is a picture, there is no text to edit. LibreOffice's PDF import made 0 of 302 words editable on our picture slides. We did not test PowerPoint, Acrobat or online converters.

Why does my edit not show after OCR?

OCRmyPDF then LibreOffice made 285 of 302 words editable, in text boxes. On each slide, every line but one sits behind the picture. We deleted every one of them, and Tesseract still read 285 words on the slides.

Does img2pptx.py keep the fonts?

No. Every text box is Arial, and bold is not found. Its ink match with the slides was 69.1%, against 22.2% for plain slides from pandoc.