\batchmode
\makeatletter
\def\input@path{{C:/lyxfiles/tests//}}
\makeatother
\documentclass[12pt,english,titlepage]{article}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\geometry{verbose,a4paper,tmargin=1in,bmargin=1in,lmargin=1in,rmargin=1in}
\pagestyle{empty}
\setlength\parskip{\medskipamount}
\setlength\parindent{0pt}
\usepackage{setspace}
\onehalfspacing

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{pdfpages}
\usepackage{ae,aecompl,aeguill}

\usepackage{babel}
\makeatother
\begin{document}
This document includes the other PDF page (file is PDF\_to\_include.pdf).

\includepdf{test2.pdf}

other stuff
\end{document}
