# Source: Tesseract.js 7.0.0 (text reading for /photo-to-pdf/)

Fetched 2026-11-16 from the npm registry and copied unmodified. Used only when a person ticks "Make the text searchable and copyable"; nothing here loads before that.

| Package | Tarball | Tarball SHA-256 | Licence |
|---|---|---|---|
| tesseract.js 7.0.0 | https://registry.npmjs.org/tesseract.js/-/tesseract.js-7.0.0.tgz | 9a93bf51c3387f945d10a24bf8b3a4bf2e45c7c7161b8242aafbaf9d3c4b606a | Apache-2.0 (LICENSE.md) |
| tesseract.js-core 7.0.0 | https://registry.npmjs.org/tesseract.js-core/-/tesseract.js-core-7.0.0.tgz | ba584355515eaff877552022853c0e71f2cb70466e759d1d6940484929718ee0 | Apache-2.0 (core/LICENSE) |
| @tesseract.js-data/eng 1.0.0 | https://registry.npmjs.org/@tesseract.js-data/eng/-/eng-1.0.0.tgz | c9bddf2e2f0a214ac7918f3f4a3caf45e09ce8674fe26662ae7787ac8927f7bb | MIT (package.json); the model is the Tesseract project's English "best" model converted to integer, from tesseract-ocr/tessdata_best (Apache-2.0) |

| File here | From (inside the tarball) | Bytes | SHA-256 |
|---|---|---|---|
| tesseract.esm.min.js | package/dist/tesseract.esm.min.js | 63,220 | 64871d76c75609fd5413b88a8171e2ef40deedd77d5875ba23df104b2d05eb29 |
| worker.min.js | package/dist/worker.min.js | 111,307 | 576b7df7e3393e137e51849357c9adb53fe7ac1bb69bfa06cf3d61520f182c6d |
| worker.min.js.LICENSE.txt | package/dist/worker.min.js.LICENSE.txt | 466 | 45f54171aeaa1d10c0c1a66f374b7bba1f02472b1487fbe892eec04f840002ac |
| LICENSE.md | package/LICENSE.md (tesseract.js) | 11,357 | b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1 |
| core/tesseract-core-simd-lstm.wasm.js | package/tesseract-core-simd-lstm.wasm.js | 3,899,472 | c58b46a4c796c0b8afccf77591d5b875b6896b45d402bbce8caa6f5362447b38 |
| core/tesseract-core-lstm.wasm.js | package/tesseract-core-lstm.wasm.js | 3,896,484 | eef5f8b2f8e20e150680b20adaec4a60babafee3adbe8a94583c81fee46e8680 |
| core/LICENSE | package/LICENSE (tesseract.js-core) | 11,358 | c6596eb7be8581c18be736c846fb9173b69eccf6ef94c5135893ec56bd92ba08 |
| lang/eng.traineddata.gz | package/4.0.0_best_int/eng.traineddata.gz | 2,952,873 | 45b4cb346724ac1774f1c36f42f182b887bcdb28ebe63e6fff90ac41f3fcff91 |

## What a browser downloads
`ocr.js` picks one engine file: the SIMD build when `WebAssembly.validate` accepts a one-instruction SIMD module, otherwise the plain build. The `.wasm.js` builds carry the WebAssembly inside the JavaScript file, so no `.wasm` file is needed (the repository ignores `*.wasm`). The relaxed-SIMD and legacy-engine builds of the package are not copied.

First use: tesseract.esm.min.js + worker.min.js + one engine file + eng.traineddata.gz = about 7.0 MB as stored (about 4.5 MB over the wire when the server compresses JavaScript; the language file is already gzip). Tesseract.js keeps the unpacked language file in this site's IndexedDB (key prefix `photo-to-pdf-tesseract-7`), so it is fetched once.

## Inside the files (credits, see /licenses/)
- worker.min.js bundles buffer (MIT, Feross Aboukhadijeh), ieee754 (BSD-3-Clause, Feross Aboukhadijeh), regenerator-runtime (MIT, Facebook) and zlib.js (MIT, imaya), as listed in worker.min.js.LICENSE.txt; the tesseract.js sources also use idb-keyval (Apache-2.0), wasm-feature-detect (Apache-2.0), bmp-js (MIT) and is-url (MIT).
- The engine files are the Tesseract OCR engine (Apache-2.0) compiled to WebAssembly with Leptonica; the compiled file also contains code from libjpeg ("Copyright (C) 2014, Thomas G. Lane, Guido Vollbeding", Independent JPEG Group licence), libtiff and zlib. The npm package ships no separate licence texts for these.

A new version goes in a new folder (tesseract-x.y.z), so a long cache lifetime on this folder is safe.
