Convert PNM to TXT
Turn PNM images into TXT. The text read by OCR as plain lines, in English unless language lists others.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop PNM files on the dialor turn it to pick what to do
Text read from a PNM image.The conversion reads the text in a PNM picture and returns it as one TXT file.
What you get
One TXT file with plain text and no formatting. PBM, PGM and PPM files all go in, since each is a portable anymap image.
Set Language to name the languages in the picture, so OCR knows which letters to expect. Separate several with commas, such as en,ko.
What it leaves behind
Layout, tables and pictures are dropped. The TXT file holds text and nothing else.
A picture with no readable text fails with
unsupported_elements. The conversion stops with it when the file holds something the target cannot carry.Choosing a language
Naming the right language matters most for Korean, Japanese and Chinese. For a picture with more than one language, list them all in Language.
A file that cannot be parsed stops with
input_corrupted.
PNM and TXT.What each format is, and the options this conversion takes.
- 01 · language
Language
The languages the text is in, so OCR knows which letters to expect. Without it the text is read as English, so letters such as é, ß and ł come out wrong and other scripts, such as Cyrillic, Arabic, Thai, Korean or Chinese, are not read. Separate several with commas, such as fr,en.
The formats
Portable Anymap
Portable anymap images, the simplest raster format: PBM, PGM and PPM.
- Extensions
- .pnm .ppm .pgm .pbm
- MIME type
- image
/x -portable -anymap - Kind
- Images
Plain Text
Plain text with no formatting at all. The smallest, most portable form of a document.
- Extensions
- .txt .log
- MIME type
- text
/plain - Kind
- Text and data
In your code.The same PNM to TXT conversion through the API, for your app or your agent.
$ cv convert photo.pnm photo.txt$ cv convert photo.pnm photo.txtQuestions.What people ask about PNM to TXT.
PBM, PGM and PPM files, which are the portable anymap formats. Each becomes one TXT file.
No. Layout, tables and pictures are dropped.
The picture has no readable text, so there is nothing the TXT file can carry.
Yes. Separate the languages with commas in Language, such as en,ko.