The command below adds a transparent image on top of each page on a PDF. I'm trying to do this whilst creating as small a file as possible, but without changing the dimensions of the pages. The command below gets a small file but it sadly changes the dimensions of the pages.
convert.exe -units PixelsPerInch -density 300 226811.pdf -resample 150 null: stampOnDoc.png -gravity northwest -geometry +3+3 -define compose:args=70,100 -compose dissolve -layers composite -depth 8 -compress zip -resample 200 StampedPDF.pdf
Bonus question - is there a way of outputting the size of the pages in the PDF, and page count as an output of the command above or another command?
Any help appreciated
