TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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.

share|improve this answer

you can use ConTeXt, then it is possible:


for the first two pages.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.