Graphics, Figures & TablesProblems with includegraphics for PDF files

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
morgeesh
Posts: 1
Joined: Sat May 01, 2010 2:11 am

Problems with includegraphics for PDF files

Post by morgeesh »

I have been using Inkscape to create graphics to go into a LaTeX document, saving the images as pdf files and trying to import them using the \includegraphics command. This worked until a few days ago when the document (which I had not changed since it had previously typeset with no errors) started giving me the errors

!LaTeX Error: Cannot determine size of graphic in test2.pdf (no BoundingBox).
if I give test2.pdf as the argument and

!LaTeX Error: Cannot determine size of graphic in test2.pdf (no size specified).
if I specify type = pdf and give the argument test2.pdf.

Previously both of these commands worked (with the same image files, and I didn't change anything before that point in the TeX file), and now none of the images work. What am I doing wrong?

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problems with includegraphics for PDF files

Post by localghost »

The error message indicates that you accidentally compiled with latex instead of pdflatex.


Best regards and welcome to the board
Thorsten
Post Reply