I have tried the following code with various alterations to the positioning index:
\begin{figure}[!ht]
\includegraphics[width=5cm,trim={0 0cm 0 0cm},clip]{Img/CustomerDevelopment.pdf}
\centering
\caption{The figure shows an example of how a customer changes the policies affiliated with the company and how that changes his segment over his first 3 years.}
\label{fig:CustomerDevelopment}
\end{figure}
However, whatever I do my figure will always go to the end of the chapter and I would like them to stay near the text. If I open the PDF-document in Adobe Reader and save it as a .png that I then import in LaTeX it works perfectly. I would like the PDF-format though seeing as I want to be able to zoom in on the figures.
Does anyone know how to solve this so I can use .pdf?
I've included an image below using the \fbox{ command to illustrate the issue.

[!ht]prevents latex putting the figure on a float page so makes it going to the end of the document more likely. You should always includep. The format has no bearing on the float positioning so presumably your pdf file makes an image of greater height than the png. – David Carlisle Jun 19 '14 at 18:44pand setting the width of the image to 1cm withkeepaspectratio = true. However, it is now a really small figure, but still at the end of the chapter. – pir Jun 19 '14 at 18:49\fbox{}around the includegraphics to show you the extend of tehe image, it is probably taller than you expect – David Carlisle Jun 19 '14 at 19:04\fbox{}I find that the image height is roughly 1/10 of the page height. Therefore, I guess that the height is not the issue :) – pir Jun 19 '14 at 19:29[p]option the png image is also moved to the end of the chapter. Does this tell you something that can narrow down the issue? Would it help if I tried to upload my preamble? – pir Jun 19 '14 at 20:09before the\includegraphics` to account for the white space in the pdf file. – David Carlisle Jun 19 '14 at 22:08