Skip to content

Commit

Permalink
Remove pdf.ttf file references
Browse files Browse the repository at this point in the history
This file is not used anymore in Tesseract 5.
  • Loading branch information
Robyer committed Jan 11, 2021
1 parent cf0a0da commit a511589
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ This project uses additional libraries (with their own specific licenses):
- Android 4.1 (API 16) or higher
- A v4.0.0 [trained data file(s)][tessdata] for language(s) you want to use. Data files must be
copied to the Android device to a directory named `tessdata`.
- If you want to use PdfRenderer, copy also [pdf.ttf][pdffile] file to the `tessdata` directory.
- Application must hold permission `READ_EXTERNAL_STORAGE` to access `tessdata` directory.

## Usage
Expand Down Expand Up @@ -75,4 +74,3 @@ To build the release version of the library, use task `tesseract4android:assembl
[jpeg]: http://libjpeg.sourceforge.net/
[png]: http://www.libpng.org/pub/png/libpng.html
[tessdata]: https://github.com/tesseract-ocr/tessdata/tree/4.0.0
[pdffile]: https://github.com/tesseract-ocr/tesseract/blob/master/tessdata/pdf.ttf
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ public void testCreate() {
new File(OUTPUT_PATH + pdfBasename + ".pdf").delete();
}

/**
* NOTE: This test requires pdf.ttf file to be in tessdata folder.
* File could be downloaded from: https://github.com/tesseract-ocr/tesseract/blob/master/tessdata/pdf.ttf
*/
@Test
public void testAddPageToDocument() throws IOException {
// Attempt to initialize the API.
Expand Down

0 comments on commit a511589

Please sign in to comment.