I need a png thumbnail of various document types, just the first page, in order to have a quick preview. For a docx document, it is possible to specify page range. But for a pdf file, there is no page range parameter, so it converts all the pages, with potentially a huge cost. Am I missing something ?
Asked
Active
Viewed 183 times
1
-
Have you tried PDF to Thumbnail Rest API? https://www.convertapi.com/pdf-to-thumbnail It has a page range and very fast. – Tomas Jul 06 '19 at 22:10
-
@Thomas Yes, that seems to be doing what I need, thanks. Still it might be useful and consistent to have a range argument in pdf to image. – patb Jul 07 '19 at 11:18
-
It could be done using pdf-split and pdf-image by chaining these actions. – Tomas Jul 07 '19 at 20:30