1

I would like to merge some pdf files, for example, paper1 & paper2. But they are in some other folders. I just want to run the tex file without keeping the pdf files. Is there any way to do this?

2
  • So you don't want to add anything, just merge the files into one? For this you can also just use The PDF Toolkit...
    – Werner
    Mar 2, 2016 at 7:17
  • are you using \includepdf ? if so you can simply state the full location of each of the files, for instance \includepdf{c:\place\where\first\file\is\paper1.pdf}
    – Elad Den
    Mar 2, 2016 at 8:09

1 Answer 1

1

At least two options here:

  1. Use The PDF Toolkit to merge the input PDFs into a single file.

    From the examples page, you can merge in1.pdf and in2.pdf into a single out1.pdf:

    pdftk in1.pdf in2.pdf cat output out1.pdf
    

    The PDF Toolkit also provides a GUI for doing this.

  2. pdfpages provides the capability to insert PDFs as-is in your document. Similar to the above example, you could use the following:

    \documentclass{article}
    \usepackage{pdfpages}
    \begin{document}
    \includepdf[pages=-]{in1}% in1.pdf
    \includepdf[pages=-]{in2}% in2.pdf
    \end{document}
    

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.