| 35 | } |
| 36 | |
| 37 | int main(int argc, char *argv[]) |
| 38 | { |
| 39 | std::string glyphs_dir = "../docling_parse/pdf_resources/glyphs"; |
| 40 | std::string cids_dir = "../docling_parse/pdf_resources/cmap-resources"; |
| 41 | std::string encodings_dir = "../docling_parse/pdf_resources/encodings"; |
| 42 | std::string fonts_dir = "../docling_parse/pdf_resources/fonts"; |
| 43 | |
| 44 | loguru::init(argc, argv); |
| 45 | |
| 46 | pdflib::font_cids cids; |
| 47 | cids.initialise(cids_dir); |
| 48 | cids.decode_all(); |
| 49 | |
| 50 | pdflib::font_glyphs glyphs; |
| 51 | glyphs.initialise(glyphs_dir); |
| 52 | |
| 53 | pdflib::font_encodings encodings; |
| 54 | encodings.initialise(encodings_dir, glyphs); |
| 55 | |
| 56 | pdflib::base_fonts fonts; |
| 57 | fonts.initialise(fonts_dir, glyphs); |
| 58 | |
| 59 | fonts.verify_all(); |
| 60 | glyphs.print_unknown_glyphs(); |
| 61 | |
| 62 | return 0; |
| 63 | } |
nothing calls this directly
no test coverage detected