Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use TeXShop as a PDF manipulation tool' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use TeXShop as a PDF manipulation tool
Authored by: Miga on Aug 14, '03 09:19:31PM

Use Macros Menu in TexShop.

1 - Choose Open Macro Editor.

2 - Click on new item

3 - Give a name to your macro (for example: merge pdf) in the name field

4 - Type the following in the Contents field

\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage[final]{pdfpages}
\begin{document}
\includepdf[pages=-]{/Users/yourusername/Desktop/file}
\end{document}

5 - Click on separator to make a clear separation between the default macros and your macros, if it is the first one.

6 - Use key and modifiers if you want a shortcut

7 - Click on test (it should work providing you have a pdf file named file.pdf on your desktop

8 - Click on save

This gives you a skeleton to merge pdf files.
When you want to merge two or more pdf files, just duplicate this line as many times as you have files to merge and just change the path for the files and eventually the number of pages:

\includepdf[pages=-]{/Users/yourusername/Desktop/file}

Note that you don't have to put the files on the desktop, that's just my way of doing that.

---
Michele



[ Reply to This | # ]