Does anyone know a way of including an external PDF document from a URL? When using pdfpages the following will not work:


My reason for asking is that I would like to avoid putting PDF files in my git repository.

  • 1
    You can have the pdf in the folder, where you work on the .tex files without adding them to the git version control. But as soon as you work with multiple people on the .tex on multiple machines this do not fix your problem. Interesting question! – Dominikus K. Apr 4 '13 at 13:59
  • Welcome to TeX.sx! – Peter Jansson Apr 4 '13 at 14:04

The package pdfpages isn't capable of downloading pdf files. But you may write a command yourself that first downloads the requested files (e.g. using wget) and imports them afterwards in the known manner.

EDIT: See also the package download: http://mirror.ctan.org/macros/latex/contrib/download/download.pdf

Using this it seems to be rather easy to create the necessary command as the command \download[filename]{url} does anything for you.


you can use ConTeXt, then it is possible:


for the first two pages.

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.