unoconv / unoserver

MIT License
596 stars 81 forks source link

Convert a specific PDF page to a PNG #107

Closed adrianocr closed 6 months ago

adrianocr commented 9 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 6 months 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.