I have to insert pdfpages of differnt sizes(heights) whose page sizes i know. I am trying
\batchmode
\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\eject \pdfpagewidth=432pt \pdfpageheight=506.52pt
\includepdfmerge[]{/home/simha/latex/test.pdf, 1}
\eject \pdfpagewidth=432pt \pdfpageheight=116.27999999999997pt
\includepdfmerge[]{/home/simha/latex/test.pdf, 2}
\end{document}
What i am getting is
instead of


fitpaperoption of pdfpages? – Ulrike Fischer Jul 28 '20 at 16:35includepdfmerge– Santhosh Jul 29 '20 at 06:49\eject \pdfpagewidth=500pt \pdfpageheight=500ptIt changes the size of the paper. I am expectingfitpaperto fit into the 500pt x 500pt page size and also align it in the top left corner – Santhosh Aug 01 '20 at 07:59