Page 1 of 1

what means this error

Posted: 2010-05-28T03:41:37-07:00
by rasidrasid
hello,

i want to convert a pdf file in jpg's. i tried it with this commando
convert 1.pdf *.jpg
so it did something and promt even this
Warning: stream operator not terminated by valid EOL

and no pic was converted.

what means that? i am using ubuntu linux

thanks

Re: what means this error

Posted: 2010-05-28T10:15:21-07:00
by el_supremo
You should post your question in the Users forum.

I presume that you are trying to produce a JPG for each page in the PDF file. If so, you can use a command like this:

Code: Select all

convert 1.pdf output_%02d.jpg
This will produce a series of JPG files: output_01.jpg, output_02.jpg, etc. You can use whatever output name you want.
But ImageMagick will use its default pixel density of 72dpi when it converts the PDF pages to JPG and this might not produce JPGs that are easy to read.
In that case you can force a higher density, for example to force 300dpi:

Code: Select all

convert -density 300 1.pdf output_%02d.jpg
Pete