I have around 100 sheet music files that contain notes under each other. What I would like to do now is to create one long string of notes.
So there I need to do the following:
- Cut out specific parts of the .pdf file.
- Glue them together horizontally
So I have for example this file:
Cut into two parts:
- https://www.flickr.com/photos/113328996@N07/33326247491/in/dateposted-public/
- https://www.flickr.com/photos/113328996@N07/33326247401/in/dateposted-public/
and now I would like to add these together in a line (automatically)
I got the first part covered but have some problems with the second part. Could anybody tell me if there’s a way to load 1 picture and place it of a certain x,y coordinate and then load another picture on another certain x,y coordinate? Think this would require a VBA / Excel equivalent of Photoshop.
Any thoughts?
2
Answers
The trick is to use transform on the images (or a function called translate layer grabbed from the scriptlistner):
I would do this with ImageMagick which is installed on most Linux distros and is available for free on macOS/OSX and Windows. You just type the commands into the Terminal/Command Prompt.
At its simplest, you can append two images side-by-side like this:
You can append images top-to-bottom like this:
The difference is the
+/-
sign precedingappend
.You can also append two images side-by-side and then append the results top-to-bottom:
You can also create a large canvas, of any colour you like (I chose magenta so you can see it on the white StackOverflow background) and splat (a technical term meaning “to carefully position”) your images wherever you like and save that as a PDF like you asked.
If you are unfortunate enough to have to use Windows, there are some differences in quoting. The slashes I have at the end of the lines (continuation characters) are represented by circumflexes (
^
) in Windows, I think. And the slashes preceding parentheses are probably not required in Windows.