Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

\includepdf[pages=-]{http://www.mydomain.com/myfile.pdf}

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

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

2 Answers 2

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
add comment

you can use ConTeXt, then it is possible:

\starttext
\insertpages[http://mirror.ctan.org/macros/latex/contrib/download/download.pdf][n=2][width=18cm]
\stoptext

for the first two pages.

share|improve this answer
add comment

Your Answer

 
discard

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.