2

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.

2

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.

  • 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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