Convert PDN to HOCR

Turn PDN images into HOCR. The visible layers are combined with their blend modes and opacity as Paint.NET up to version 5.1 flattens them.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop PDN files on the dialor turn it to pick what to do

Text with word positions from a Paint.NET image.The visible layers are flattened, then OCR reads the text.

  1. What you get

    One HOCR file. It is OCR output as HTML with the position of every word on the page.

    A PDN file holds every layer at full canvas size, each with its blend mode and opacity. The layers that are visible are combined into one picture before the text is read.

  2. How layers are combined

    The visible layers are merged with their blend modes and opacity, the way Paint.NET up to version 5.1 flattens them. The text is read from that merged picture.

    The PDN file also holds a small thumbnail of the whole picture. The thumbnail is not what is read.

  3. Setting the language

    Set Language to the languages the text is in, so OCR knows which letters to expect. Separate several with commas, such as fr,en.

    Without it the text is read as English. Letters such as é, ß and ł come out wrong, and other scripts, such as Cyrillic, Arabic, Thai, Korean or Chinese, are not read.

    For other formats, see every HOCR conversion.

PDN and HOCR.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 · PDN

Paint.NET Image

Paint.NET's layered image format: every layer at full canvas size with its blend mode and opacity, and only a small thumbnail of the whole picture.

Extensions
.pdn
MIME type
image/x-paint.net
Kind
Images
To · HOCR

hOCR

OCR output as HTML with the position of every word on the page.

Extensions
.hocr
MIME type
text/x-hocr
Kind
Text and data

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

terminal
$ cv convert photo.pdn photo.hocr
$ cv convert photo.pdn photo.hocr

Questions.What people ask about PDN to HOCR.

01OF 04

No. Only the visible layers are combined, and the text is read from that combined picture.

Set Language to the languages in the picture, such as fr,en. Without it, the text is read as English.

Without Language, the text is read as English. Letters such as é, ß and ł come out wrong, so set Language to match the text.

You get one file. The visible layers are merged first, and that one picture is read.

More conversions.Other ways in and out of PDN and HOCR.