feat: 5개 마스터 JSON 추가 (총 9개) + 외용제 레이아웃

This commit is contained in:
청춘약국
2026-03-18 23:13:05 +09:00
parent 25db8750cb
commit 1c5758d9d5
8 changed files with 311 additions and 7 deletions

View File

@@ -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,