I am generating PDF documents using pdflatex with signature images which are pre-converted with Inkscape to pdf.
The current template looks like this ({{ tags }} are django template tags):
\noindent \begin{tabular}{l l l}
CUSTOMER: & \includegraphics[width=6cm,height=1.5cm,keepaspectratio]{{ customer_sig2 }} & Date: {% now "SHORT_DATE_FORMAT" %}\\
& {{ qb_full_name|upper }} & \\
REP: & \includegraphics[width=6cm,height=1.5cm,keepaspectratio]{{ rep_sig2 }} & Date: {% now "SHORT_DATE_FORMAT" %}\\
& {{ qb_rep_name|upper }}
\end{tabular}
Below is rough example of what I currently have and what I need (link):
http://i.stack.imgur.com/v1G30.gif
The signature images are created as PDF with Inkscape from svg base64 data. It seems Inkscape automatically crops to nearest edges. Thats called from python without many options – x = Popen(['/usr/bin/inkscape', tmpfile.name, '--export-pdf=%s' % pdf.name])
How can I best recreate the example image in latex?
EDIT:
Current signatures after help from Przemyslaw, using the following code (showing bottom and left and right margins of page):
\noindent \begin{tabular}{lc}
CUSTOMER: & \includegraphics[height=1.35cm,width=6.1cm,keepaspectratio]{{ customer_sig2 }}\\
\cline{2-2}
& \multicolumn{1}{r}{\rule{0mm}{4mm} Date: {% now "SHORT_DATE_FORMAT" %} }
\end{tabular}
\hfill \begin{tabular}{lr}
REP: & \includegraphics[height=1.35cm,width=6.5cm,keepaspectratio]{{ rep_sig2 }}\\
\cline{2-2}
& \multicolumn{1}{r}{\rule{0mm}{4mm} Date: {% now "SHORT_DATE_FORMAT" %} }
\end{tabular}
FYI – I'm using jSignature plugin to capture the signature.. THe standard box dimension is 378x95px
Example of signature being pushed down by height of image (this would have been a fixed width with keep aspect ratio, no fixed height specified, see hrule for rep signature is nudged down a bit):
Best Answer
A quick solution, with pictures changed:
Two tables in one line. Package
url
for underline char. Frame around at.png is a picture. I have removedkeepaspectratio
to show the begaviour ofDate: 05/23/2013
, one of them with correction of depth.