[Tex/LaTex] How to add a picture onto an existing pdf file

graphicspdf

I have a scanned pdf file which is an application form, and a picture which is the scanned version of one's signature (for example, this one) and can be in any image format such as eps or png. I would like to put the signature picture on the blank space right to "APPLICANT:" on the second page of the application form. I wonder how to do that in TeX?

I have tried the following non-TeX methods, but none succeeded.

  1. The first way is using gimp. I first import the application form
    into gimp, and then paste the signature picture on the space right
    to "APPLICANT:" on the second page of the application form.

    But the
    problems are that:

    • It seems that I can only import one page of the
      application form into gimp, not all of the two pages.

    • Also when I
      save the modification, the closest format to pdf I can save to is
      ps, and the resolution has been downgraded and the storage size of
      the saved file is 10 times bigger than the original application form and the signature picture.

  2. The second way is using Libreoffice Draw. I have installed the
    libreoffice-pdfimport package. But after I import the application
    form into Libreoffice Draw,

    • all the scanned content is not imported,
      and

    • the layout is different from the layout of the original
      application form.

So can TeX help? Can it lay the signature picture directly on the application form pdf file,

  • without having to convert between formats,
  • without having to create much bigger files while keeping the original resolution,
  • without having to split and combine pages of a multi-page pdf file,
  • without having to rasterize other parts of the pdf file, i.e. without losing the text I later added to the application form pdf file by having to convert the whole pdf into images.

Thanks!

Best Answer

This can be done with pdflatex easily. You can e.g. use graphicx or pdfpages to import the pdf and a picture-environment to overlay it with some text. Here e.g. an example with eso-pic.

\documentclass{article}
\usepackage{eso-pic}
\usepackage{graphicx}
\AddToShipoutPictureBG*{%
 \AtPageLowerLeft{\includegraphics[page=1]{test}}
 \AtPageLowerLeft{%
  \put(\LenToUnit{8cm},\LenToUnit{10cm}){\Huge\bfseries TEXT}}}%

\begin{document}
\mbox{} % to create a page

\end{document}
Related Question