Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have some JPEG files. Most of them are landscape oriented, but some are portrait oriented.

I want to combine them into one big PDF file. I tried pdfjoin but this results in all images beeing landscape oriented.

Strange thing is: When I do the joining only on the portrait oriented images, then all images are portrait oriented. Same with all images that are landscape oriented. But if I do pdfjoin on all images at a time, then the result is always landscape oriented, which means, that if you watch the PDF file you have to turn your head by 90 degrees to watch the images that were portrait oriented originally.

I would like to have an easy command line solution for this.

share|improve this question
add comment

1 Answer

Oh, I just found a solution. I used GraphicsMagick to achieve it. So pdfjoin wasn't a good choice.

This is my solution:

gm convert *jpeg output.pdf

Still I ask myself if there is a solution with pdfjoin or similar. Just curious.

share|improve this answer
    
Cool. I've never heard of this project, it's a forked version of ImageMagick, project looks good, and the project looks pretty active and thriving. Incidentally you can do the same using the ImageMagick tool, convert. –  slm May 13 '13 at 3:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.