The command converts pages 2, 3, and 4 of the input.pdf file to PNG images with transparent backgrounds and saves them with the specified naming pattern. Ghostscript allows us to specify a page range using the -dFirstPage and -dLastPage options: $ gs -dNOPAUSE -sDEVICE=pngalpha -r300 -dFirstPage=2 -dLastPage=4 -sOutputFile=output-%03d.png input.pdf -c quit Similarly, when it comes to converting specific pages of a PDF file to images using Ghostscript, we can add the desired page range to the command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |