Add Save As / format conversion across office doc types #161

Open
opened 2026-04-26 08:24:35 +00:00 by zaelgohary · 0 comments
Member

OnlyOffice can convert between formats via its Convert API (xlsx <-> csv, docx <-> pdf, pptx -> pdf, ...). Currently no path in our UI lets a user export.

Acceptance

  • A Save As action on each FileRow (or in the editor's File menu equivalent if simpler), with a dropdown of valid target formats based on source DocType.
  • A new RPC method on hero_office_server that wraps OnlyOffice's /ConvertService.ashx endpoint: takes (context, filename, targetExt), POSTs a JWT-signed convert request, polls for completion, downloads the converted bytes, PUTs them into hero_foundry under a new filename.
  • Sensible target sets:
    • Cell -> csv, pdf, ods
    • Word -> pdf, odt, rtf, txt
    • Slide -> pdf, odp
    • Pdf -> docx (extract editable, lossy)
    • Diagram -> pdf, png
  • Test: seed a docx, Save As pdf, assert the new pdf appears in the list and opens cleanly in the PDF island.
OnlyOffice can convert between formats via its Convert API (xlsx <-> csv, docx <-> pdf, pptx -> pdf, ...). Currently no path in our UI lets a user export. ## Acceptance - A `Save As` action on each `FileRow` (or in the editor's File menu equivalent if simpler), with a dropdown of valid target formats based on source `DocType`. - A new RPC method on hero_office_server that wraps OnlyOffice's `/ConvertService.ashx` endpoint: takes (context, filename, targetExt), POSTs a JWT-signed convert request, polls for completion, downloads the converted bytes, PUTs them into hero_foundry under a new filename. - Sensible target sets: - Cell -> csv, pdf, ods - Word -> pdf, odt, rtf, txt - Slide -> pdf, odp - Pdf -> docx (extract editable, lossy) - Diagram -> pdf, png - Test: seed a docx, Save As pdf, assert the new pdf appears in the list and opens cleanly in the PDF island.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_archipelagos#161
No description provided.