From e51ec042b88d6a726b09a3ff55044ffed0c30a50 Mon Sep 17 00:00:00 2001 From: guilherme Date: Fri, 6 Jul 2018 13:33:52 -0300 Subject: [PATCH] corrected issues in layout of danfe --- pytrustnfe/nfe/danfe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytrustnfe/nfe/danfe.py b/pytrustnfe/nfe/danfe.py index 5b578bc..63decf9 100644 --- a/pytrustnfe/nfe/danfe.py +++ b/pytrustnfe/nfe/danfe.py @@ -323,7 +323,7 @@ class danfe(object): P = Paragraph(tagtext(oNode=elem_emit, cTag='xNome'), styleN) w, h = P.wrap(55 * mm, 40 * mm) P.drawOn(self.canvas, (self.nLeft + 30) * mm, - (self.height - self.nlin - ((5*h + 12)/12)) * mm) + (self.height - self.nlin - ((4.3*h + 12)/12)) * mm) if self.logo: img = get_image(self.logo, width=2 * cm) @@ -347,7 +347,7 @@ class danfe(object): P = Paragraph(cEnd, styleN) w, h = P.wrap(55 * mm, 30 * mm) P.drawOn(self.canvas, (self.nLeft + 30) * mm, - (self.height - self.nlin - 31) * mm) + (self.height - self.nlin - 33) * mm) # Homologação if tagtext(oNode=elem_ide, cTag='tpAmb') == '2':