feat: add AS status feedback for both HMI sizes with verified v2.7 release
This commit is contained in:
@@ -39,7 +39,8 @@ def export(font_path):
|
||||
page_width, page_height = landscape(A4)
|
||||
width = page_width - 80
|
||||
body = ParagraphStyle('Body', fontName='AMIChinese', fontSize=9.3,
|
||||
leading=15, spaceAfter=8, wordWrap='CJK', alignment=TA_LEFT)
|
||||
leading=14, spaceAfter=6, wordWrap='CJK', alignment=TA_LEFT,
|
||||
allowWidows=0, allowOrphans=0)
|
||||
heading = ParagraphStyle('Heading', parent=body, fontSize=16, leading=23,
|
||||
textColor=colors.HexColor('#12485E'), spaceBefore=3,
|
||||
spaceAfter=12, keepWithNext=True)
|
||||
@@ -127,7 +128,7 @@ def export(font_path):
|
||||
canvas.line(40, 31, page_width-40, 31)
|
||||
canvas.setFont('AMIChinese', 8)
|
||||
canvas.setFillColor(colors.HexColor('#506775'))
|
||||
canvas.drawString(40, 19, 'AMI-2.5 | 2026-10-04 | CAN1 500K / CAN2 250K')
|
||||
canvas.drawString(40, 19, 'AMI-2.7 | 2026-10-07 | CAN1 500K / CAN2 250K')
|
||||
canvas.drawRightString(page_width-40, 19, f'{doc.page}')
|
||||
canvas.restoreState()
|
||||
|
||||
@@ -136,7 +137,7 @@ def export(font_path):
|
||||
leftMargin=40, rightMargin=40,
|
||||
topMargin=36, bottomMargin=44,
|
||||
title='AMI CAN 报文说明', author='AMI / YMR',
|
||||
subject='AMI CAN DBC v2.5: CAN1 500K / CAN2 250K')
|
||||
subject='AMI CAN DBC v2.7: CAN1 500K / CAN2 250K')
|
||||
document.build(story, onFirstPage=footer, onLaterPages=footer)
|
||||
print(OUTPUT)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user