I'm new to beamer and am trying to make a presentation. When inserting an image, the output is satisfactory, except when I try to insert a .pdf
! The white layer in the image disappears. Initially, the image was a .ps
, so I used ps2pdf14
to convert it to .pdf
and then pdfcrop
to add the amount of white border I desire. I can convert the .pdf
to .png
and it works fine, but the quality isn't good enough for big pictures. Is there a way to restore the white layer when inserting the .pdf
image? I apologize if this is a trivial question, or if I've simply over looked something.
Here's an example code to illustrate the problem
\documentclass[xcolor=svgnames,mathserif,serif]{beamer}
\usetheme{default}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{frametitle}[default][center]
\definecolor{myblue}{RGB}{47,94,142}
\setbeamercolor{background canvas}{bg=myblue}
\usefonttheme{structuresmallcapsserif}
\setbeamercolor{title}{fg=white}
\setbeamercolor{titlelike}{fg=white}
\setbeamercolor{normal text}{fg=white}
\title{Sample Title}
\author{\large{Me}}
\institute{\small{University}}
\date{\small{Today's Date}}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}{Sample Title}
\begin{center}
\includegraphics[width=3in]{1.pdf} %why isn't white space appearing?
\end{center}
\end{frame}
\end{document}
Best Answer
pdf
images has a transparent background, so even with a border, when you include them over a colored background the"white border" disappears. The easiest solution would be to include your figure into a white box with\colorbox{white}{\includegraphics{your-pdf-figure}}
. This way figure's background and border are white.Update: Missing graphic example for the original answer and some rotating examples for lalebarde's comment.
Note: you can get 1842.pdf sources from here