images and pdf

3 respostas [Última entrada]
muhammed
Desconectado
Joined: 04/13/2013

I have three landscape-oriented png images. They're each something like 1700 x 1200.

Can put them into a three-page pdf document? I'd like to keep the image quality, and horizontal orientation too if possible.

Is there a program that will do this?

muhammed
Desconectado
Joined: 04/13/2013

I could put the pngs into LibreOffice Writer. But Writer has the white-space border around the image. I can stretch the image to cover that border, but I don't know how to stretch it "to scale". the png gets distorted either vertically or horizontally when I do this.

muhammed
Desconectado
Joined: 04/13/2013

Oh ... LO Office has a program called Draw. And it does exactly this. And it did it perfectly.

Never mind this topic

Magic Banana

I am a member!

I am a translator!

Conectado
Joined: 07/24/2010

Answering anyway the first question: you can use the 'convert' command (shipped with the ImageMagick package) to get PDFs:
$ for img in *.png; do convert "img" "${img%ng}df"; done

You can then join the PDFs ('pdfjoin' is shipped with the PDFjam package):
$ pdfjoin *.pdf

The order is that of the arguments (you may not want the alphabetical order you get with globbing, i.e., using the "*").