Skip to content

Add M365-backed DOCX to PDF conversion#1

Merged
bencarver merged 1 commit intomainfrom
feature/m365-docx-conversion
Mar 19, 2026
Merged

Add M365-backed DOCX to PDF conversion#1
bencarver merged 1 commit intomainfrom
feature/m365-docx-conversion

Conversation

@bencarver
Copy link
Owner

@bencarver bencarver commented Mar 19, 2026

Summary

  • add a backend conversion service at POST /api/docx-to-pdf that uses Microsoft Graph to upload DOCX to OneDrive, request format=pdf, and return converted PDF bytes
  • wire frontend DOCX upload normalization to that endpoint for both Extract and Assembly flows, while keeping PDF behavior unchanged
  • improve upload error UX by surfacing detailed conversion failures directly in file rows (missing env, auth/token issues, Graph permission errors)
  • add full-stack local dev wiring (dev:backend, dev:full, Vite /api proxy) and document M365 env + permission setup in README.md

Test Plan

  • npm run build
  • npm run dev:backend starts successfully
  • with valid M365 env + granted Graph app permissions, upload a .docx and confirm it appears as converted PDF and can be extracted
  • with intentionally broken env, confirm document row displays specific conversion error details

Made with Cursor

Support DOCX uploads by converting through a server-side Microsoft Graph service, and surface detailed conversion errors in the UI to speed up auth and permission troubleshooting.

Made-with: Cursor
@bencarver bencarver merged commit f30f534 into main Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant