Hello,
Here is my situation : I have several .jpg files that have roughly the same size (360*510) that I would like to concatenate into a .pdf file so that I can print only one file and reduce the amount of non-printed pagespace.
In order to achieve this, I used montage :
montage -geometry 360x510+2+2 -mode concatenate -tile 3x3 *.jpg output.pdf
This does approximately what I want : it does generate a multipage .pdf file with, on each page, 9 of my .jpgs, with a small whitespace between them.
However, it has only 2 pixels inner margin on the sides, which isn't acceptable for print - I would need something like 2cms (let's make it simple and have the same margin on vertical and horizontal edges) on each side of my .pdf pages.
Is there any way I can achieve this with command-lines?
Thanks a lot!
Converting several .jpg into a multipage .pdf - with external margins
-
- Posts: 4
- Joined: 2016-06-25T03:22:07-07:00
- Authentication code: 1151
-
- Posts: 4
- Joined: 2016-06-25T03:22:07-07:00
- Authentication code: 1151
Re: Converting several .jpg into a multipage .pdf - with external margins
It seems I found a way.
Relaunch a montage on the output.pdf file :
montage -geometry +50+50 -mode concatenate -tile 1x1 output.pdf outputEdges.pdf
this sort of does what I want.
Relaunch a montage on the output.pdf file :
montage -geometry +50+50 -mode concatenate -tile 1x1 output.pdf outputEdges.pdf
this sort of does what I want.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Converting several .jpg into a multipage .pdf - with external margins
You could have just added a border around the outside using -border
-
- Posts: 4
- Joined: 2016-06-25T03:22:07-07:00
- Authentication code: 1151
Re: Converting several .jpg into a multipage .pdf - with external margins
I did try the -border option, but it added a border to each of my .jpg files, and thus created wide borders within the pages, rather than on their borders.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Converting several .jpg into a multipage .pdf - with external margins
You have to pipe the output from montage to a convert to add the border. It is similar to what you did with a second montage, but just using the simpler -border.