Convert only some pages from PDF to TIF with xpdf

100 views Asked by At

I'm using this command to convert a PDF to a TIF image on stdout:

convert -density 300 -depth 8 -compress lzw my.pdf tif:- 

If the PDF has multiple pages, how to convert only the first page?

1

There are 1 answers

0
Marco Marsala On BEST ANSWER

Found it. Append the page number to the input filename with array-like syntax:

convert -density 300 -depth 8 -compress lzw my.pdf[0] tif:-