Ask Your Question

How does OCR in Writer work?

asked 2019-11-23 21:28:41 +0200

Steve S. gravatar image

I have Libre Office, which I use on a MacBook Pro with OSX 10.12.6. The Writer has a menu option at the top of the screen labled "OCR". When I click on it, I get "Upload Image". When I click on "Upload Image", I get nothing (blank). Am I supposed to be able to process an image with Optical Character Recognition and convert it into a text or PDF file? Why isn't it working?

Thanks, Steve

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

answered 2019-11-26 06:29:34 +0200

mauricio gravatar image

In Mac, it's possible install Tesseract, Pillow and Python Tesseract, and used next macro:

import uno
from PIL import Image
import pytesseract

def main():    
    path_image = '/home/mau/test.png'
    data = pytesseract.image_to_string(

    doc = XSCRIPTCONTEXT.getDocument()
    doc.Text.String = data

With this macro I get:

image description

edit flag offensive delete link more

answered 2019-11-25 19:10:09 +0200

Steve S. gravatar image

Yes, you're right. Very embarrassing that I didn't see that. I don't remember installing it. Sorry and thank you.

edit flag offensive delete link more


Please edit your question or add a comment to other answer.

m.a.riosv gravatar imagem.a.riosv ( 2019-11-26 22:04:09 +0200 )edit

answered 2019-11-23 21:42:54 +0200

Ratslinger gravatar image

updated 2019-11-24 04:29:04 +0200


LO has no OCR capabilities. See also answer in this post:

It is probable you have an extension installed. Check your extensions. Possibly this one:

which appears to be a non-stable version nor updated in some time.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-11-23 21:28:41 +0200

Seen: 1,445 times

Last updated: Nov 26 '19