Turning Open Office document into an image.

Asked by Daniel

As I have to deliver some of my speeches on a DVD reader and a large screen, is there any way of changing an open office document into an image ? Thanks for your attention.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu openoffice.org Edit question
Assignee:
No assignee Edit question
Solved by:
Daniel
Solved:
Last query:
Last reply:
Revision history for this message
Juan C. Villa (juanqui) said :
#1

What you can try to do is to export your document as a PDF and then use the convert command to convert it from pdf to jpg.

You will need the following applications:
- Image Magick (sudo apt-get install imagemagick)
- Ghostscript (sudo apt-get install ghostscript)

To convert a PDF to JPG do the following:
convert document.pdf output.jpg

Note:
You can also use the "-quality" switch in the convert command to tweak with the jpeg output quality.

Revision history for this message
Daniel (danbar) said :
#2

I did the applications of Image Magick and Ghostscript successfully.

I changed successfully my document from open office to pdf file.

I'm finding trouble with converting from pdf to jpg. Maybe because I'm using the evince document viewer for the pdf files ? I cannot find the convert tab.

Thanks for your time.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#3

The "convert" command must be typed into a terminal window.

So please open a Terminal from the menu Applications->Accessories->Terminal and type:

convert your_document_name.pdf your_document_name.jpg

Hope this helps

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

But there is also a quick solution using Gimp please read at the end of this post:

http://ubuntuforums.org/showthread.php?t=391467

Hope this helps

Revision history for this message
Daniel (danbar) said :
#5

Thanks Marcobra! Yes using the gimp I was successful. On the other hand when I tried to change a file with several pages, only the first page was changed into a jpg file. Is there a solution ?

Revision history for this message
Juan C. Villa (juanqui) said :
#6

Attempt to use the "convert" command:

Go to Applications->Accessories->Terminal and type: "convert your_document_name.pdf your_document_name.jpg" [Note that there are TWO spaces in total]

Let us know if that works

Revision history for this message
Daniel (danbar) said :
#7

This is what the terminal gave me.

 convert provapdfjpg.pdf provapdfjpg.jpg
convert: unable to open image `provapdfjpg.pdf': No such file or directory.

I put the file on the desktop. Do I need to put in a particular place ?

Revision history for this message
Juan C. Villa (juanqui) said :
#8

You have to run that command from the directory where your pdf is.

For example. Let's say that your PDF is in you Documents folder (This is located in /home/USERNAME/Documents , replace USERNAME with your real username). When you open the terminal (Applications->Accessories->Terminal) you have to change to that directory:
--> Type "cd /home/USERNAME/Documents" and press enter ('cd' stands for Change Directory).

When you are in the same directory where the PDF is then you can use the convert command.

Revision history for this message
Daniel (danbar) said :
#9

I made sure that the document is in the requested place before I convert it to jpg but a strange message appeared.:

 "cd /home/daniel/documents"
bash: cd /home/daniel/documents: No such file or directory

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#10

Please try:

cd /home/daniel/Documents

Revision history for this message
Daniel (danbar) said :
#11

Yes I was successful in locating the exact place yet another message appeared. What's wrong. Sorry for taking your time.

:~$ cd /home/daniel/Documents
xxx@xxxx-desktop:~/Documents$ cd /home/daniel/Documentsxxxx@xxxxx-desktop:~/Documents$ "convert provapdfjpg.pdf provapdfjpg.jpg"bash: convert provapdfjpg.pdf provapdfjpg.jpg: command not found
xxxx@xxxxx-desktop:~/Documents$

Revision history for this message
Juan C. Villa (juanqui) said :
#12

Make sure you have image magick installed.

From the terminal run "sudo apt-get install imagemagick"

Then try again

Revision history for this message
Daniel (danbar) said :
#13

I'm using the gimp program which is changing pdf files into jpg's files successfully. Obviously when it comes to large documents I have to do it for each page manually as the burst command is not leading to the desired effect.

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#14

On a multipages document i strong suggest you the convert command detailed step to install it:

Open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo aptitude update
sudo aptitude upgrade
sudo aptitude install imagemagick

give your user password when requested, you don't see nothing when you type it, then press enter.

Then try again your previous command:

convert provapdfjpg.pdf provapdfjpg.jpg

Hope this really helps

Revision history for this message
Daniel (danbar) said :
#15

Marcobra, You're surely an expert because YES I SOLVED IT! Many many thanks! Sorry for not answering before but I had other appointments these last one a half days. The document was automatically converted into many jpg images as it contained many pages.
Thanks again for your time and patience.