Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to convert a very large PDF file (>2GB) to a PNG (or JPEG) file so that it is easier to open and look at.

I want to do that without opening the PDF file since it is too large to be opened.

Is there any way to do this in either Windows or Linux?

share|improve this question
    
Check out this other SO: <stackoverflow.com/questions/2869908/…;. Imagemagick is your friend. –  Jason McD Apr 11 at 21:31
    
Just out of curiosity, what does the file contain to be so big? Scanned pages perhaps? –  Daniel B Apr 13 at 2:51
    
@DanielB It is an output from a function, it is a large similarity matrix. –  Yilun Zhang Apr 14 at 19:14
    
I see. So basically it's just text then. Turning that into an image will probably make things a lot worse. –  Daniel B Apr 14 at 20:00
    
@DanielB Oh, it is a figure of similarity matrix, so it is an image. –  Yilun Zhang Apr 14 at 20:30

1 Answer 1

You can use ImageMagick to do that (http://www.imagemagick.org)

If you work under Linux, it is typically installed by default by most distribution, and you call it in the following mannger:

convert -density 300 -depth 8 -quality 85 [SOURCE FILE NAME].pdf [TARGET FILE NAME].png

if the PDF file has several pages, the target will be several PNG files, one for each page.

Hope that helps!

share|improve this answer
    
I'm working on company's server, and I couldn't find the covert command. –  Yilun Zhang Apr 14 at 19:15
    
convert is part of ImageMagick. Your distribution's sure to provide packages for it. It's rather popular, after all. –  Daniel B Apr 14 at 21:58
    
What OS are you using? Try to ask the system administrator about it, or getting it installed on the server. It is a very common and pretty standard utility in most Linux distributions (installed by default in many) and can be easily installed also on Windows servers. –  OM55 Apr 14 at 23:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.