Skip to content

Commit 8ad009a

Browse files
committed
pdf format
1 parent 2ecfadf commit 8ad009a

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/OpenIntranet/plugins/production.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -972,28 +972,28 @@ def get(self, name):
972972
pdf.set_xy(163, rowy)
973973
pdf.cell(0, 5, str(component['_id'].get('UST_ID', '--')))
974974

975-
pdf.set_xy(90, rowy + 3.5)
975+
pdf.set_xy(90, rowy + 7)
976976
pdf.cell(0, 5, component['_id'].get('Footprint', '--')[:30])
977977

978-
pdf.set_xy(90, rowy + 7.5)
979-
pdf.cell(0, 5, str(component['_id'].get('note', '--')))
978+
#pdf.set_xy(90, rowy + 7.5)
979+
#pdf.cell(0, 5, str(component['_id'].get('note', '--')))
980980

981-
pdf.set_font('pt_sans-bold', '', 7.5)
982-
983-
pdf.set_xy(90, rowy)
981+
pdf.set_xy(15, rowy+8)
984982
pdf.cell(0, 5, component['_id'].get('Value', '--')[:30])
985983

984+
pdf.set_font('pt_sans-bold', '', 7.5)
985+
986986
pdf.set_font('pt_sans-bold', '', 9)
987987

988-
pdf.set_xy(15, rowy+3.5)
988+
pdf.set_xy(15, rowy)
989989
pdf.cell(0, 5, name)
990990

991991
pdf.set_font('pt_sans-bold', '', 8)
992992

993-
pdf.set_xy(15, rowy-0.7)
993+
pdf.set_xy(15, rowy + 4)
994994
pdf.cell(0, 5, str(', '.join(component['Ref'])), border=0)
995995

996-
pdf.set_xy(10, rowy + 3.5)
996+
pdf.set_xy(10, rowy + 4)
997997
pdf.cell(0, 5, str(component['count'])+'x', border=0)
998998

999999
pdf.set_font('pt_sans', '', 8)

0 commit comments

Comments
 (0)