feat: 5개 마스터 JSON 추가 (총 9개) + 외용제 레이아웃
This commit is contained in:
@@ -129,13 +129,8 @@ class AnimalMedRendererV2:
|
||||
return { width: rect.width, height: rect.height };
|
||||
}''')
|
||||
|
||||
# A4에 맞는 scale 계산
|
||||
content_width_pt = rect['width'] * 0.75
|
||||
content_height_pt = rect['height'] * 0.75
|
||||
|
||||
scale_x = 595 / content_width_pt if content_width_pt > 0 else 1
|
||||
scale_y = 842 / content_height_pt if content_height_pt > 0 else 1
|
||||
scale = min(scale_x, scale_y, 1.0)
|
||||
# scale 고정 (자연스러운 페이지 분할)
|
||||
scale = 1.0
|
||||
|
||||
await page.pdf(
|
||||
path=output_path,
|
||||
|
||||
Reference in New Issue
Block a user