@page {
margin: 1cm;
- margin-bottom: 2.5cm;
+ margin-bottom: 1cm;
@frame footer {
-pdf-frame-content: footer;
bottom: 0cm;
#content table tr th{
padding: 5px;
- font-size: 14px;
+ font-size: 12px;
border: 1px solid #000;
}
}
#content table tr th:first-child{
- width: 60%;
+ width: 50%;
}
#content table tr td{
border-left: 1px solid #000;
border-right: 1px solid #000;
line-height: 24px;
- font-size: 14px;
+ font-size: 12px;
font-weight: bold;
}
#content table tr td:first-child{
font-size: 2em;
}
+#signature {
+ margin-left: auto;
+ display: block;
+ width:200px;
+ margin-bottom:20px;
+}
#footer{
text-align: center;
</div>
- <table style="margin-top: 15pt; border-spacing : 0; border-collapse : collapse; table-layout: fixed">
+ <table style="margin-top: 15pt; border-spacing : 0; border-collapse : collapse; table-layout: fixed;">
<thead>
<tr style="border: 1px solid #000;">
<th style="padding-top: 3pt; width: 300pt;">DESCRIPTION</th>
</tbody>
</table>
+ <img id="signature" src="https://{{ site.domain }}/static/teleforma/images/signature.png" alt="Signature">
+
{% block footer %}
<div id="footer" style="line-height: 15px; font-size: 10px; color: #000">
<hr />
prefix = "crfpa_facture"
filename = '_'.join([prefix, self.receipt_id, student.user.first_name, student.user.last_name])
filename += '.pdf'
- return filename.encode('utf-8')
+ return filename
class CorrectorRegistrationPDFView(PDFTemplateResponseMixin, TemplateView):