OCR then PDF to Word: the Word file only shows page images

Home › Forums › General › OCR then PDF to Word: the Word file only shows page images

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #60424
    Phil van Kleur
    Participant

    I have a PDF of an academic paper which looks as though it's been scanned, and is not searchable. I wanted to convert it to a Word file wherein the pages are text rather than images. I did so by using PDF24's OCR and then its Convert function. However, although OCR'ing generates a searchable PDF, when I convert that to DOCX, I get a file whose pages are images. How can I get round this?

    I'll finish by inserting screenshots of what I did. This is using a copy of PDF24 installed yesterday onto Windows 10.

      1. The original PDF. As I said, this looks like someone's scan. The first word on the page is "purple", but Find can't recognise it, showing that the file is not searchable.2
      2. The OCR'd PDF. This shows an earlier page. The paper is about Roman textiles, and a search for "Roman" found 30 occurrences, of which the second is shown. This PDF clearly is searchable.
      3. The DOCX file to which the OCR'd PDF was converted. This shows it open in LibreOffice Writer (I don't have Word). You can see a box around the content. Dragging its top left vertex pulls the content along as if it were an image. Searching for the word "Roman" (and for other words I know are there, such as "wool") finds nothing.
    #64471
    Phil van Kleur
    Participant

    This is Phil van Kleur, who wrote the question above. I spent over half an hour preparing screenshots to include in the question, only to find when I'd uploaded them all that the system refused to accept the question. It kept saying "There is an error in your image", but would not explain what. By trial and error, I found I had to remove all the images before I could submit. I was expecting I could then go back and remove the text referring to them, but I can't find a control for editing submitted questions. Unlike StackExchange, don't you allow that, or am I missing something?

    Anyway, I would really appreciate it if the site would explain why it won't accept my images, instead of just saying there's an error. I prepared them carefully to show exactly what each file looked like, and what were the settings I used.

    #60432
    Stefan Ziegler
    Keymaster

    OCR adds a text layer to the PDF file. If the PDF only contains images, then conversion to Word creates a Word file with that images. OCR does not detect content of the images and creates a new PDF based on that detected content.

    #64472
    Phil van Kleur
    Participant

    It looks as though this problem isn't only with papers that start off as images. I've asked a new question at https://help.pdf24.org/en/questions/question/why-does-converting-a-text-pdf-to-word-leave-it-as-images/ . Here, I tried converting an academic paper downloaded from Academia.edu . It doesn't look scanned, and is searchable. I can copy text from it and paste that into Notepad. Yet, when I convert it to Word, the result is images. I demonstrated with a screenshot in the new question, and put up a temporary copy of the paper at http://www.filedropper.com/ddwild2002thetextileindustriesofromanbritain . Is it possible that I've accidentally turned on a switch that says "Convert all PDFs to images?".

    #65987
    PDF24 Support
    Moderator

    Hello,

    an update for everyone who finds this topic: OCR adds an invisible text layer to the PDF, the page itself stays the scanned image. When such a PDF is converted to Word, the Word file shows the scanned page as an image, and the recognized text is only included as hidden text behind it. So the result looks like the original, but it is not editable text. Real text pages (not scans) become editable text with the converter of the current version.

    If you need the recognized text of a scan to work with, run OCR and then extract the text with PDF to Text:

    An option to turn the recognized text of scans into editable text in Word is on our to-do list.

    #66736
    PDF24 Support
    Moderator

    Hello,

    a short update: since today, OCR followed by PDF to Word gives editable text in the online tools. When a scanned PDF already has a text layer from OCR, PDF to Word now takes over the recognized text as normal, editable text instead of showing the scanned page as an image with hidden text behind it (mode "Auto", the default). PDF to Word does not run OCR itself, so do that first:

    OCR: https://tools.pdf24.org/en/ocr-pdf

    PDF to Word: https://tools.pdf24.org/en/pdf-to-word

    Pages where the look is the point, such as forms, title pages or two-column pages, keep the scanned image. If you prefer the original look of all pages, choose the mode "Fixed".

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.