0

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

enter image description here

instead of

enter image description here

Santhosh
  • 265
  • 1
    why don't you use the fitpaper option of pdfpages? – Ulrike Fischer Jul 28 '20 at 16:35
  • Where can i see the documentation for the options of includepdfmerge – Santhosh Jul 29 '20 at 06:49
  • Also i want to add page numbers. https://tex.stackexchange.com/questions/555470/how-to-add-page-number-for-a-pdf-file-whose-page-sizes-are-different – Santhosh Jul 29 '20 at 07:20
  • @SanthoshYedidi Does the desired page numbers enlarge the page size, or it just resides in the lower center of inserted page? – muzimuzhi Z Jul 30 '20 at 15:37
  • Using fitpaper does not respect the \eject \pdfpagewidth=500pt \pdfpageheight=500pt It changes the size of the paper. I am expecting fitpaper to fit into the 500pt x 500pt page size and also align it in the top left corner – Santhosh Aug 01 '20 at 07:59

0 Answers0