converting pdf to image

I want to convert pdf format to image(any format) in order to apply image compression algorithm on resulting image. I've tried using ghostscript but was unsuccessful as 'gs' command was not recognized by windows cmd even after giving entire path till gs-version. Please help me out.

Answers (2)

Image Analyst
Image Analyst on 3 Dec 2016

0 votes

Type alt-PrintScreen to copy it to the clipboard. Then paste it into something like Photoshop, crop it if necessary, then save it.
heroe
heroe on 6 Nov 2026 at 8:32

0 votes

If Ghostscript is causing command recognition issues on Windows, another approach is to use a desktop PDF converter to export each PDF page as an image, such as JPG or PNG. This conversion may be done using PDFChamp Image to PDF without having to deal with command-line commands. Once the pages are exported as images, you may run them through whatever image compression method you like, one image at a time. Just check the resolution of the image and the output format to achieve the quality needed for further processing.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Asked:

on 3 Dec 2016

Answered:

on 6 Nov 2026 at 8:32

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!