Generalproblem viewing PDF graphics

General information and discussion about TeXnicCenter
Post Reply
bigredp
Posts: 2
Joined: Wed Dec 08, 2010 2:19 am

problem viewing PDF graphics

Post by bigredp »

Hello,
I am trying to import a pdf graphics file into another document using Texniccenter. The problem is that the imported picture gets cut off so that only part of it is on the page of the finished document. Here is what my code lines look like:

\begin{figure}

\centering
\includegraphics{file.pdf}
\caption[Short caption for figure ]{\label{labelFig1}
text}

\label{fig.1}
\end{figure}


I have tried scaling, changing the height and/or width, \linewidth, and bounding boxes[bb command]. Whatever I try, I still can't get the whole picture to show in the the output file. Any suggestions?

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: problem viewing PDF graphics

Post by frabjous »

Please don't cross-post. It is against the forum rules.

It's impossible to tell what's gone wrong from this snippet. I realize you may not be able to upload the PDF here which is causing the trouble, but I suspect there's an issue with it. How did you create or acquire this PDF? Can you try to re-create it, perhaps by printing PDF to PDF and then recropping?
bigredp
Posts: 2
Joined: Wed Dec 08, 2010 2:19 am

Re: problem viewing PDF graphics

Post by bigredp »

Sorry about the cross-post. I didn't realize that it was against the rule. I deleted the duplicate post.
Anyway, I got the PdF from someone with whom I work on a project. I think that he converted it from an eps file. He says that the graphics work just fine if he use the eps file on latex(not pdflatex) and outputs a DVI. I don't know if that makes my problem any clearer though.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: problem viewing PDF graphics

Post by frabjous »

As of TeXlive 2010 and MikTeX 2.9, pdflatex now allows .eps files to be used directly, so that might be a possibility.

If you're using an older version, or can't get ahold of the original .eps anymore, well, there's the suggestion I already made.
Post Reply