Results 1 to 4 of 4

Thread: How to convert PDF file to JPG or PNG in ubuntu?

  1. #1
    Join Date
    Jan 2012
    Posts
    50

    How to convert PDF file to JPG or PNG in ubuntu?

    currently my system is powered by ubuntu. I wanted to know how can I convert pdf to JPG or PNG?
    Any help will be greatly appreciated. Thanks a lot in advance.

  2. #2
    Join Date
    Aug 2011
    Posts
    565

    Re: How to convert PDF file to JPG or PNG in ubuntu?

    Well you will be able to do the same by using command-line utility. It seems to be part of Imagemagick suite and you will be install the same by using synaptic.
    Now in order to convert PDF file to PNG you have to use below mentioned command.
    Code:
    convert infile.pdf outfile.png

  3. #3
    Join Date
    Aug 2011
    Posts
    461

    Re: How to convert PDF file to JPG or PNG in ubuntu?

    I got when I was trying to number of odd size pdf documents to A4 format.
    use pdftk in order to rotate the picture.
    Code:
    pdftk your_input_file.pdf cat 1-endW output rotated.pdf

    after that use imagemagicks in order to convert ps fil and used the -density 300 so that I can have 300dpi resolution.
    Code:
    convert -density 300 rotated.pdf rotated.ps

    finally use ghostscript so that one can get output in A4 format.
    Code:
    gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sPAPERSIZE=a4 -sOutputFile=output.pdf rotated.ps

  4. #4
    Join Date
    Jul 2011
    Posts
    555

    Re: How to convert PDF file to JPG or PNG in ubuntu?

    you will be able to open pdf file in evince. Go for print to file and click on page setup and go for pages per side and click on Use 4. Now you will see that new pdf file with 4 pages at every side has been created. Now you can convert the same into png document by using below mentioned command.

    Code:
    convert 4pages_per_side.pdf 4pages_per_side.png

Similar Threads

  1. Replies: 4
    Last Post: 04-04-2012, 01:12 AM
  2. Replies: 4
    Last Post: 10-11-2010, 01:00 AM
  3. Convert *.MKV to *.AVI in Ubuntu
    By Samantha1 in forum Operating Systems
    Replies: 5
    Last Post: 12-05-2010, 03:48 PM
  4. Easily Convert Windows in Ubuntu Look
    By Twitter in forum Tips & Tweaks
    Replies: 2
    Last Post: 28-03-2010, 05:22 AM
  5. Unable to convert any video file to avs file
    By Hamlet in forum Windows Software
    Replies: 5
    Last Post: 08-03-2010, 10:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •