Open the boxfile based on the given image filename.
| 31 | |
| 32 | // Open the boxfile based on the given image filename. |
| 33 | FILE* OpenBoxFile(const STRING& fname) { |
| 34 | STRING filename = BoxFileName(fname); |
| 35 | FILE* box_file = NULL; |
| 36 | if (!(box_file = fopen(filename.string(), "rb"))) { |
| 37 | CANTOPENFILE.error("read_next_box", TESSEXIT, "Can't open box file %s", |
| 38 | filename.string()); |
| 39 | } |
| 40 | return box_file; |
| 41 | } |
| 42 | |
| 43 | // Reads all boxes from the given filename. |
| 44 | // Reads a specific target_page number if >= 0, or all pages otherwise. |
nothing calls this directly
no test coverage detected