0

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?

Marco Marsala
  • 2,332
  • 5
  • 25
  • 39

1 Answers1

1

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:- 
Marco Marsala
  • 2,332
  • 5
  • 25
  • 39