Convert PNM to DOCX

Turn PNM images into DOCX. The text read by OCR as an editable Word document, one paragraph for each block of text the reader finds, 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 from a PNM image, in a Word file.The text in the picture is read and placed in a DOCX document.

  1. What you get

    One DOCX file with the text that is read from the PNM image. The picture is read as text, so the file holds words, not the image itself.

  2. What it leaves behind

    Layout, tables and pictures are dropped. Only the text is kept, so columns, table cells and any pictures in the image do not appear in the Word file.

    A PNM image with no readable text fails, and the conversion stops with unsupported_elements.

  3. Setting the language

    Set Language to the languages the text is in, so the letters are recognized correctly. Without it the text is read as English, so letters such as é, ß and ł come out wrong. Other scripts, such as Cyrillic, Arabic, Thai, Korean or Chinese, are not read.

    Separate several languages with commas, such as fr,en.

PNM and DOCX.What each format is, and the options this conversion takes.

  1. 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

From · PNM

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
To · DOCX

Word Document

Word's default document format since 2007. A zip of XML parts with the text, styles, images and tracked changes.

Extensions
.docx
MIME type
application/vnd.openxmlformats-officedocument.wordprocessingml.document
Kind
Documents

In your code.The same PNM to DOCX conversion through the API, for your app or your agent.

terminal
$ cv convert photo.pnm photo.docx
$ cv convert photo.pnm photo.docx

Questions.What people ask about PNM to DOCX.

01OF 04

No. Pictures are dropped, along with layout and tables. Only the text that is read is kept.

The image has no readable text. The conversion stops with unsupported_elements when there is nothing to read.

Yes, if you set Language. Without it the text is read as English, so Cyrillic, Arabic, Thai, Korean or Chinese are not read.

Yes. Separate them with commas in Language, such as fr,en.

More conversions.Other ways in and out of PNM and DOCX.