Converting JPG to PDF multipage.

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
a533
Posts: 2
Joined: Tue Sep 08, 2009 7:58 am

Converting JPG to PDF multipage.

Post 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
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Re: Converting JPG to PDF multipage.

Post by marsh »

Please try "-dpi" setting.
pdf to tif - result is fuzzy
a533
Posts: 2
Joined: Tue Sep 08, 2009 7:58 am

Re: Converting JPG to PDF multipage.

Post by a533 »

I think it keeps the size in the first place. My mistake. Thank you,

Alvaro
Post Reply