feat: PDF·HWP 문서 미리보기 API 구현 - #187
Merged
Merged
Conversation
9 tasks
hywznn
marked this pull request as ready for review
August 16, 2026 03:13
This was referenced Aug 16, 2026
Member
Author
|
AI 후속 작업 PR #54에서 변환 엔진을 이 PR이 사용하는 실제 Server Fixture 4종을 AI 브랜치와
AI PR: fowoco/ai#54 AI PR 병합 후 Server의 실제 HTTP 미리보기 API로 한 번 더 왕복 검증한 뒤 #186의 blocked 상태를 해제하면 됩니다. 현재 Server 코드는 변경하지 않았습니다. |
This was referenced Aug 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
왜 필요한가요?
Refs #186
HR이 문서를 내려받기 전에 브라우저에서 확인할 수 있도록 Server 미리보기 경로를 추가합니다. 기존
/content는 첨부 다운로드만 제공하고, HWP·HWPX는 브라우저가 직접 표시할 수 없어 PDF 변환 연결이 필요했습니다.무엇이 바뀌나요?
GET /api/v1/files/{fileId}/previewinline반환POST /api/v1/documents/convert를 호출해 PDF 반환Cache-Control: no-store,X-Content-Type-Options: nosniff설정·문서
AI_DOCUMENT_CONVERSION_ENDPOINTAI_DOCUMENT_CONVERSION_TIMEOUT(기본 60초)docs/file-preview.md검증
병합 판단과 남은 범위
Server의 권한·HTTP·timeout·응답 크기·안전한 오류 계약은 병합 가능한 상태입니다. PDF·이미지는 즉시 사용할 수 있습니다.
다만 실제 LibreOffice Smoke Test에서 HWP는 깨진 60페이지 PDF가 생성됐고 HWPX 3종은 변환에 실패했습니다. 따라서 Server API는 병합하되 HWP/HWPX Client 활성화와 기능 완료 처리는 보류합니다. AI 렌더링 보완과 동일 fixture Smoke Test 통과 여부는 #186에서 계속 관리합니다.