hocr2pdf(1)

hocr2pdf1

Hocr to pdf converter of the exactimage toolkit

Usage

hocr2pdf [option ...] {-i | --input} input-file {-o | --output} output-file

hocr2pdf {-h | --help}

Overview

ExactImage is a fast C++ image processing library. Unlike many other library frameworks it allows operation in several color spaces and bit depths natively, resulting in low memory and computational requirements.

hocr2pdf creates well layouted, searchable PDF files from hOCR (annotated HTML) input obtained from an OCR system.

Options

-i file, --input file

Read image from the specified file. Note that input hOCR is read from the standard input.

-o file, --output file

Save output PDF to the specified file.

-n, --no-image

Don't place the image over the text. By default the text layer is hidden behind the image.

-s, --sloppy-text

Sloppily place text, group words, do not draw single glyphs.

-r n, --resolution n

Override resolution of the input image to n dpi. The default resolution (if not specified in the input file) is 300 dpi.

--quality

Quality setting used for writing compressed images. Integer range 0-100, the default is 75

--compress

Compression method for writing images e.g. ascii85, hex, flate, jpeg, jpeg2000, ... Default based on bit-depth

-h, --help

Display help text and exit.

Examples

$ hocr2pdf -i scan.tiff -o test.pdf < cuneiform-out.hocr

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–10
  5. 11–13

--compress since Debian 9 (Stretch); --quality since Debian 9 (Stretch).

Authors

Jakub Wilk <[email protected]>

Wrote this manual page for the Debian system.

https://exactcode.com/opensource/exactimage/

This manual page incorporates texts found on the ExactImage homepage.

From exactimage 1.2.1-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.