mirror of
https://github.com/simon987/libscan.git
synced 2025-12-14 06:59:02 +00:00
fixes
This commit is contained in:
0
test/.gitkeep
Normal file
0
test/.gitkeep
Normal file
28
test/main.c
28
test/main.c
@@ -1,28 +0,0 @@
|
||||
#include "../libscan/text/text.h"
|
||||
#include <fcntl.h>
|
||||
#include "../libscan/arc/arc.h"
|
||||
#include "../libscan/ebook/ebook.h"
|
||||
#include "../libscan/ooxml/ooxml.h"
|
||||
#include "../libscan/font/font.h"
|
||||
|
||||
#include <ft2build.h>
|
||||
#include <freetype/freetype.h>
|
||||
|
||||
int main() {
|
||||
|
||||
scan_ebook_ctx_t ctx;
|
||||
|
||||
ctx.content_size = 100;
|
||||
vfile_t file;
|
||||
file.is_fs_file = TRUE;
|
||||
file.filepath = "/home/simon/Downloads/libscan/CMakeLists.txt";
|
||||
file.fd = open("/home/simon/Downloads/libscan/CMakeLists.txt", O_RDONLY);
|
||||
file.read = fs_read;
|
||||
|
||||
document_t doc;
|
||||
doc.meta_head = NULL;
|
||||
doc.meta_tail = NULL;
|
||||
|
||||
doc.size = 200;
|
||||
parse_ebook(&ctx, &file,"application/pdf", &doc);
|
||||
}
|
||||
Reference in New Issue
Block a user