GeneralHow to embed an entire PDF document?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
jordib
Posts: 1
Joined: Tue Jun 29, 2010 1:08 pm

How to embed an entire PDF document?

Post by jordib »

I'm writing a thesis and need to embed some publications somewhere in the middle. I have already learned that this can be done with the pdfpages package, but this appears to only work with pdflatex. I'm using the texify, dvips and ps2pdf commands from MiKTeX 2.7 from the WinEdt interface, because otherwise the images in the thesis won't work.

So my question is: Given that I can't use pdflatex, how can I embed a PDF document in my thesis?

Thanks!

More detail:

Code: Select all

\documentclass{article}

\usepackage[final]{pdfpages}
\begin{document}

\includepdf[pages=-]{dummy.pdf} % get it here: http://www.tex.ac.uk/CTAN/macros/latex/contrib/pdfpages/dummy.pdf
\end{document}
If I try using pdfpages anyway (using the above code), I just get an empty page embedded in my document if I use texify/dvips/ps2pdf. If I use pdflatex, this code works and I get the 30 page document included, like I want. If I actually specify the pages (pages=1-30 or pages=6-10), I get 30 (or 5) blank pages using texify/dvips/ps2pdf. I also tried using absolute rather than relative paths, but it doesn't help.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

How to embed an entire PDF document?

Post by frabjous »

If it were me, I would use pdflatex. There should be ways of making the images you need to use compatible with pdflatex, either by converting the images (e.g., with the epstopdf command line tool) or by using a packages such as epstopdf and auto-pst-pdf. Someone else may have another suggestion, though.

(I suppose an alternative would be to convert the documents in question to ps using, e.g., pdf2ps from ghostcript, but then you've have to insert them page by page. I'd try the above option first. Lastly, you could just do what you're doing now, and then take the final output of your routine and then include both your resulting pdf and the pdfs you need toinclude with pdfpages to get the final version. Still, I think my first suggestion the easiest.)
Post Reply