Page 1 of 1

Converting JPG to PDF multipage.

Posted: Tue Sep 08, 2009 8:09 am
by a533
Good morning,

I am trying to convert several JPG files into one PDF file. I use the sentence:

nconvert -multi -o output.pdf -out pdf -c 5 -l list.txt

where list.txt is a file like this
1.jpg
2.jpg
3.jpg

It works, but the problem is that all JPG image are streched to fill all the PDF page. For instance if the JPG is only 2 by 2 inches, it is streched to fill all the A4 in the pdf.
Is there an option to keep the same size of the jpg?

I tried -canvas w h pos : Resize canvas
Then it works, but the background is in black,which is not good por printing.
I found this option:
-bgcolor red green blue: Background color (for rotate/canvas)
but it does not change the background for this conversion.

Any ideas?
Thank you very much for your help and for the great program.
Alvaro
ps I'm using NCONVERT v5.31

Re: Converting JPG to PDF multipage.

Posted: Tue Sep 08, 2009 8:31 am
by marsh
Please try "-dpi" setting.
pdf to tif - result is fuzzy

Re: Converting JPG to PDF multipage.

Posted: Tue Sep 08, 2009 8:48 am
by a533
I think it keeps the size in the first place. My mistake. Thank you,

Alvaro