#include "fpdfview.h"
#include <iostream>
#include <string>
#include <string.h>
// #include "opencv2/opencv.hpp"
const char* icudt64_dat ="/data2/jesse/work/pdfium/repo/icudtl.dat2";
int main(int argc, char* argv[]) {
// FPDF_InitLibrary();
const char* fonts[] = {
"../fonts/",
NULL
};
FPDF_LIBRARY_CONFIG config;
config.m_pUserFontPaths = fonts;
config.version = 2;
config.m_pIsolate = NULL;
config.m_v8EmbedderSlot = 0;
FPDF_InitLibraryWithConfig(&config);
char* path = "../sample/test.pdf";
if (argc > 1) {
path = argv[1];
}
FPDF_DOCUMENT doc = FPDF_LoadDocument(path, 0);
if (doc)
pdfium ppm demo
最新推荐文章于 2024-09-08 06:13:57 发布