unoconv / unoserver

MIT License
495 stars 69 forks source link

Convert a specific PDF page to a PNG #107

Closed adrianocr closed 1 month ago

adrianocr commented 4 months ago

I'm trying to convert a specific page from a PDF file to a PNG but not succeeding. unoconvert --filter-options PageRange=3-3 inFile.pdf outFile.png correctly generates a PNG but it is the first page of the PDF.

I believe the --filter-options parameter applies to the outputted file, correct? And PageRange is a property of the PDF exporter, right? In which case how does one act on the input file? It appears that unoserver doesn't have an option for this (yet)?

regebro commented 1 month ago

When exporting to PNG there is no option to export certain page ranges, so I don't think that option exists.

There are command line tools to pick out certain pages from PDF's, those might be useful.