switch to better poppler cpp api