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"
mkdir out
cd out
cmake ..
make -j4