0

Good morning. I am trying to insert a pdf file: mga.pdf into a doc and upon compiling I get a blank doc sans pdf file. Not sure what to do here. As I said it compiles fine but I do not see the pdf image there at all.

Any help is greatly appreciated.

-MD

\documentclass[12pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[width=1.00cm, height=1.00cm, left=1.00cm, right=1.00cm,  top=2.00cm, bottom=2.00cm]{geometry}
\date{}
\title{PHILIP DYKES}
\begin{document}

\maketitle

\includegraphics{mga}


\end{document}
  • Just for fun, is it on page 2? Includepdf are for inserting full pdf pages, not limited images, use includegraphics for that. Additionally includepdf issues a newpage before start, and since you use maketitle, that newpage is used and the images go to page 2 – daleif Aug 10 '17 at 13:29
  • 1 page only. I just edited my post to reflect changes I tried but now I get: "file mga not found"? Despite the fact that the tex file & mga.pdf are in the same folder. -MD – Michael Dykes Aug 10 '17 at 14:24
  • While, testing, also have a look at those margins. width looks wrong. Can we have the exact log? Editors are not always that good at parsing the log. Also are 100% sure the spelling is correct? Are you on a system where case matters in file names? Exactly which engine are you using to compile? – daleif Aug 10 '17 at 14:33
  • No issues with the code here – daleif Aug 10 '17 at 14:35
  • @daleif: File `mga' not found. \includegraphics{mga} I am on ubuntu 17.04, and using texstudio 2.11.2 – Michael Dykes Aug 10 '17 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.