[Tex/LaTex] How to avoid page break after /FloatBarrier

floatsplaceins

I am using the placins package with the section option. I noticed there seems to be a page break before a section. Below is my code. How do I bring the second section to the previous page?

\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage[section]{placeins}
\begin{document}
\section{First}
\lipsum[1-3]
\begin{figure}[htb]
  \centering
  \includegraphics[width=0.8\textwidth]{example-image} 
  \caption{\label{fig:} }
\end{figure}
\begin{figure}[htb]
  \centering
  \includegraphics[width=0.8\textwidth]{example-image} 
  \caption{\label{fig:} }
\end{figure}
\begin{figure}[htb]
  \centering
  \includegraphics[width=0.8\textwidth]{example-image} 
  \caption{\label{fig:} }
\end{figure}

\section{Second}
\lipsum[4]
\begin{figure}[htb]
  \centering
  \includegraphics[width=0.8\textwidth]{example-image} 
  \caption{\label{fig:} }
\end{figure}

\end{document}

Best Answer

This?

\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{lipsum}
%\usepackage[section]{placeins}
\begin{document}
\section{First}
\lipsum[1-3]
\begin{figure}[htbp]
  \centering
  \includegraphics[width=0.8\textwidth]{example-image} 
  \caption{\label{fig:} }
\end{figure}
\begin{figure}[htbp]
  \centering
  \includegraphics[width=0.8\textwidth]{example-image} 
  \caption{\label{fig:} }
\end{figure}

\clearpage

\begin{figure}[ht]
  \centering
  \includegraphics[width=0.8\textwidth]{example-image} 
  \caption{\label{fig:} }
\end{figure}


\section{Second}
\lipsum[4]
\begin{figure}[htbp]
  \centering
  \includegraphics[width=0.8\textwidth]{example-image} 
  \caption{\label{fig:} }
\end{figure}

\end{document}
Related Question