\documentclass[8pt,a4paper]{article}
\usepackage{grffile}
\usepackage[final]{pdfpages}
\usepackage[left=1cm, right=1cm, top=2cm, bottom=2cm]{geometry}
\usepackage[yyyymmdd,hhmmss]{datetime}
\usepackage{pgffor}
\usepackage{titleps}
\usepackage{graphicx}

\usepackage[utf8x]{inputenc}
\usepackage[yyyymmdd,hhmmss]{datetime}%\
\usepackage[export]{adjustbox}
\usepackage{epstopdf}
\epstopdfDeclareGraphicsRule{.tif}{png}{.png}{convert #1 \OutputFile}
\AppendGraphicsExtensions{.tif}

\usepackage{tcolorbox}% http://ctan.org/pkg/tcolorbox
\definecolor{mycolor}{rgb}{0.122, 0.435, 0.698}% Rule colour
\makeatletter
\usepackage[export]{adjustbox}
%\newcommand{\mybox}[1]{%
%  \setbox0=\hbox{#1}%
%  \setlength{\@tempdima}{\dimexpr\wd0+13pt}%
%  \begin{tcolorbox}[colframe=mycolor,boxrule=0.5pt,arc=4pt,
%      left=6pt,right=6pt,top=6pt,bottom=6pt,boxsep=0pt,width=\@tempdima]
%    #1
%  \end{tcolorbox}
%}

\newpagestyle{main}{%
\setheadrule{0.4pt}
\sethead{\itshape\sffamily Auto-generated PDF by ReView}{}{\sffamily\itshape V International Scientific and Technical Conference Actual Issues of Power Supply Systems}
\setfootrule{0.4pt}
%\setfoot{\itshape\sffamily\today\ \currenttime}{\itshape\sffamily AIPP Review Copy Only}{\sffamily\itshape\thepage}
\setfoot{\itshape\sffamily\scriptsize\ \name}{\itshape\sffamily AIPP Review Copy Only}{\sffamily\itshape\thepage}
%Uncomment following line to set the label
%\begin{picture}(0, 0)\put(-30,10){{\large\bfseries\name}}\end{picture}
%\begin{picture}(0, 0)\put(-43,10){\fboxsep=3pt\mybox{{\normalsize\bfseries\name}}}\end{picture}
}
\def\xincludepdf[#1]#2[#3]{\gdef\name{#3}\includepdf[#1]{#2}}

\begin{document}
\xincludepdf[width=\textwidth,keepaspectratio,pages=-,pagecommand={\thispagestyle{empty}}]{/var/www/html/confproc.aippublishing.org/public/storage/uploads/icaipss2025/ART/885/0.pdf}[0.pdf]
\xincludepdf[width=\textwidth,keepaspectratio,pages=-,pagecommand={\thispagestyle{main}}]{/var/www/html/confproc.aippublishing.org/public/storage/uploads/icaipss2025/ART/885/970.pdf}[297_Khaydarova_ICAIPSS2025.docx \(Main Document\)]
\end{document}