kb47 / pdf-poppler

Convert PDF files into images using Poppler with promises. It achieves 10x faster performance compared to other PDF converters.
MIT License
50 stars 20 forks source link

This Module Working is Perfect . But I need to convert first page only ? Is it possible ? #1

Closed siamraj closed 6 years ago

adrianbenjuya commented 6 years ago

Hi, just set "1" in the "page" property under "opts"

let opts = { format: 'jpeg', out_dir: path.dirname(file), out_prefix: path.baseName(file, path.extname(file)), page: 1 }

siamraj commented 6 years ago

Yeah. I got it. Thanks