feat(535-2): B09 도면 PDF PyMuPDF(AGPL) 제거 — 장마다 SVG 쪽 → 공용 PDF 엔진(Chromium) · pypdf 합치기

- 점선 = 미리 자른 실선 조각(Chromium 이 점선을 채운 윤곽으로 풀어 PDF 3 배 커지는 것 막음)
- 글 안 빈칸 그대로(white-space: pre) · 세운 글 방향 = 화면(openwebcad canvas)과 같게
- 못 넣은 그림 = data: 아님 · base64 깨짐
- test_302_2: PDF 읽기 pymupdf → pypdf · add_drawing_page(pymupdf 문서) 시험 → drawing_page(SVG) 로 고침 · 점선 조각 · 빈칸 시험 더함

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 19:42:54 +09:00
co-authored by Claude Opus 5.5
parent 9add13ccbc
commit b8ef5d033d
4 changed files with 193 additions and 122 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ def merge_pdfs(parts: list[bytes]) -> bytes:
writer = PdfWriter()
for part in parts:
writer.append(io.BytesIO(part))
writer.compress_identical_objects(remove_identicals=True, remove_orphans=True)
writer.compress_identical_objects(remove_duplicates=True, remove_unreferenced=True)
out = io.BytesIO()
writer.write(out)
return out.getvalue()