Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 676 Bytes

README.md

File metadata and controls

38 lines (30 loc) · 676 Bytes

pdfium_with_cmake

convert pdf to image

compile pdfium with cmake on Ubuntu.
using agg, without V8/xfa
using libjpeg-turbo (need to install nasm)
using system zlib

download pdfium source code follow PDFium

mkdir repo
cd repo
gclient config --unmanaged https://pdfium.googlesource.com/pdfium.git
gclient sync
cd pdfium

修改代码

third_party/freetype/src/src/psnames/psmodule.c remove first #include "pstables.h"

// #include "pstables.h"
#define  DEFINE_PS_TABLES
#define  DEFINE_PS_TABLES_DATA
#include "pstables.h"

build

mkdir out
cd out
cmake ..
make -j4