I would like to create a Print Plugin to append the output to an existing PDF File.
Here are my steps so far:
- Ask for Finder Items
- Combine PDF Pages (append)
- Open Finder Items
It sort of does the job, but:
- It prepends the output: the new output is inserted at the beginning rather than the end.
- I creates a new file.
I can handle the new file situation, I suppose, by doing a Save As…, but I don’t want the new output to be placed at the beginning.
How can I append the output at the end of an existing PDF file?
Best Answer
A very old discussion on https://discussions.apple.com/thread/2240963 had the solution.
Here is a working version of the plugin:
Step 3 solves the problem of appending rather than prepending the file by echoing the items in the reverse order. Steps 2, 5 & 6 takes care of creating a new file by renaming (and moving) the new file to the original.
As soon as I have tested it out more, I will post a link to a working version.