Skip to main content
simsiris
Participant
May 10, 2021 9:18 AM UTC
Answered

Convert a PDF image file to .txt doesn't output any text.

Hi Community, 

It seems that the export of PDF to txt doesn't launch OCR recognition. When converting the attached document to .txt, no text gets recognized.

However converting to DOCX or HTML outputs the recognition text. Please find the script to reproduce in enclosure. 

 

Is it expected? Any suggestion to trigger OCR when converting to .txt would be highly appreciated.

 

Thanks & regards,

Simon

This topic is closed to new replies. Start a new post to keep the conversation going.
Bernd Alheit
Bernd AlheitCorrect answer
Community Expert
May 11, 2021 8:23 AM UTC

When you export as text Acrobat doesn't perform OCR on the document.

Export as Word or HTML has this option.

3 replies

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
May 11, 2021 8:23 AM UTC

When you export as text Acrobat doesn't perform OCR on the document.

Export as Word or HTML has this option.

Translate
Bernd Alheit
Community Expert
Community Expert
May 10, 2021 12:47 PM UTC

Why does you use "com.adobe.acrobat.accesstext" ?

Translate
simsiris
simsirisAuthor
Participant
May 10, 2021 2:54 PM UTC

Hmm I put it to experiment. I guess "com.adobe.acrobat.plain-text" is the most apropriated. I'm not actually sure about what does "accesstext" means...

However "com.adobe.acrobat.plain-text" still doesn't trigger OCR and outputs a 6 bytes .txt file, containing the UTF16 BOM + 2 space characters. 

 

Any further idea ? 

Translate