How to add page numbers to Postscript/PDF

Based on rcs’s proposed solution, I did the following: Converted the document to example.pdf and ran pdflatex addpages, where addpages.tex reads: \documentclass[8pt]{article} \usepackage[final]{pdfpages} \usepackage{fancyhdr} \topmargin 70pt \oddsidemargin 70pt \pagestyle{fancy} \rfoot{\Large\thepage} \cfoot{} \renewcommand {\headrulewidth}{0pt} \renewcommand {\footrulewidth}{0pt} \begin{document} \includepdfset{pagecommand=\thispagestyle{fancy}} \includepdf[fitpaper=true,scale=0.98,pages=-]{example.pdf} % fitpaper & scale aren’t always necessary – depends on the paper being submitted. \end{document} or alternatively, … Read more

How to make stroke width immune to the current transformation matrix

Edit: There is an attribute you can add to your rect to get exactly this behavior: vector-effect=”non-scaling-stroke” This was wrong: This will work if you apply the transform directly to the shape, not the group it is in. Of course, if you wanted to group several items and scale them all together, that approach won’t … Read more

overlay one pdf or ps file on top of another

You can do this with pdf files using the command line tool pdftk using the stamp or background option. e.g. $ pdftk file1.pdf background file2.pdf output combinedfile.pdf This will only work with a one-page background file. If you have multiple pages, you can use the multibackground command instead.