Graphics, Figures & Tablespdfpages error

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ric
Posts: 3
Joined: Tue Nov 02, 2010 12:23 am

pdfpages error

Post by ric »

Hello I am trying to incorporate a PDF document into a project, the code that I am using is as follows:

\documentclass{report}
\usepackage[final]{pdfpages}
\begin{document}
\includepdf{steve.pdf}
\end{document}

Though I receive the following errors:

1. Undefined control sequence. Undefined control sequence. <argument> ...}\AtBeginShipoutUpperLeftForeground
{\put (0,\LenToUnit {\ESO@... {\ Put (0, \ LenToUnit {\ ESO@ ...
1.7 \includepdf{steve.pdf}

2. You can't use `\raise' in internal vertical mode.
\put (#1,#2)#3->\@killglue \raise
#2\unitlength \hb@xt@ \z@ {\kern #1\unitle...
1.7 \includepdf{steve.pdf}

3. Missing number, treated as zero.
<to be read again>
1.7 \includepdf{steve.pdf}

4. Illegal unit of measure (pt insterted)
<to be read again> \hbox
1.7 \includepdf{steve.pdf}

Could someone please advise where I have gone wrong.
Last edited by ric on Wed Nov 03, 2010 10:31 pm, edited 1 time in total.

Recommended reading 2024:

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

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

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

Re: pdfpages error

Post by frabjous »

I can't duplicate the problem, personally.

I assume this happens with every pdf, and not just steve.pdf? And it happens even if you clean out temporary .aux files and the like before compiling?

My guess is that you have some kind of version conflict between packages. Try adding \listfiles to the beginning of the file, and then post the resulting .log file here.

You might also try updating/upgrade your LaTeX system, if that's possible.
ric
Posts: 3
Joined: Tue Nov 02, 2010 12:23 am

Re: pdfpages error

Post by ric »

Hello,

Thats correct it happens with any pdf file that I try and attach.

Here is a copy of the log file
Last edited by ric on Wed Nov 03, 2010 7:14 pm, edited 1 time in total.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: pdfpages error

Post by frabjous »

You should probably edit your post to put the log in an attached file, or at least in a code box, per board rules.

Anyway, here is my .log file for the same code. Apart from the obvious difference that I'm using TeXlive and you're using MikTeX, I'm also using newer versions of report.cls, graphics.sty, calc.sty. graphics.cfg and a few others. If I had to guess, I'd suspect that the older versions you're using are not compatible with the newer versions of pdfpages.sty or eso-pic.sty. I don't use MikTeX, so I don't know how well it's maintained, but you could try installing newer versions of these packages through its package manager. Or you could upgrade to MikTeX 2.8 or 2.9, which you'll need to do by the end of the year anyway.

I don't really know what else it could be. (Maybe someone else will, however.)
Attachments
scratch.log
(11.57 KiB) Downloaded 445 times
ric
Posts: 3
Joined: Tue Nov 02, 2010 12:23 am

Re: pdfpages error

Post by ric »

Thank you for your assistance, all is now working well :D
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: pdfpages error

Post by localghost »

I wonder why you deleted the log file which described the problem. This practice makes the problem incomprehensible for eventual readers.


Best regards and welcome to the board
Thorsten
Post Reply