Belval / pdf2image

A python module that wraps the pdftoppm utility to convert PDF to PIL Image object
MIT License
1.6k stars 194 forks source link

pdftoppm chenge freetype font #203

Closed kbrajwani closed 3 years ago

kbrajwani commented 3 years ago

Can i know which fonts is used by pdftoppm by default and how can we change it? i just want to use one arial font rather than the default font.

Belval commented 3 years ago

There is not option built-in to do so in pdf2image. The default font for pdftoppm is probably dependent on your OS.

As far as implementing it in pdf2image, I am not sure that it possible neither pdftoppm nor pdftocairo implement font override.