![]() ![]() To convert multiple PDF files to JPG format in batch mode: $ for i in `ls *.pdf` do convert "$i" "$i".jpg done To convert the first page of a PDF file into JPG image: $ convert input.pdf output.jpg To convert a PDF file to a JPG image with width 500px: $ convert -density 500 input.pdf output.jpg For JPG images, an allowed compression level ranges from 1 (lowest quality and highest compression) to 100 (best quality and lowest compression). The -quality option in the command specifies image compression level. To convert a PDF file to a JPG image with JPEG compression level set to 50: $ convert -quality 50 input.pdf output.jpg Other usages of convert command are illustrated as follows. ![]() ![]() Note that if input.pdf is a multi-page PDF file, the above command will produce as many JPG files as the number of pages in the PDF file (e.g., output-0.jpg, output-1.jpg, output-2.jpg, etc). ![]() Assuming that you have installed ImageMagic on your Linux system, run the following command to convert input.pdf to output.jpg. ImageMagic comes with a versatile command-line tool called convert which can handle the conversion easily. The easiest one-shot solution to convert a PDF file to JPG format is using ImageMagick. If you are looking to convert PDF files to JPG/JPEG format on Linux, the following guide will help. Converting a PDF file into JPG also makes it unnecessary to load a separate plugin or external application for web browsers to render it. For example, you may want to embed a PDF file into PowerPoint or OpenOffice Impress presentations, in which case JPG/JPEG images will be easier to work with. While PDF (short for "Portable Document Format") is a widely used document format supported by a variety of applications on multiple platforms, you may want to convert PDF files to JPG format for several reasons. How to convert PDF files to JPG format on Linux ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |