Repository navigation
Feat: Add Word to PDF (.docx) - #15
Merged
Merged
Conversation
Headers, footers and page numbers, clickable links, heading bookmarks, and widow, keep-lines and keep-with-next control. PdfDrawing gains links and bookmarks; the Word preview and the new tool share one converter.
Footnotes and endnotes, columns with balancing and continuous sections, table styles with borders, header rows and split rows, tab stops with leaders, bookmarks and a table of contents with real page numbers, odd and even headers, page number restarts, inline and cropped pictures, embedded fonts, and safer reading of damaged files.
Contributor
|
Preview of 91ed291: https://feat-word-to-pdf.ream-bqb.pages.dev |
Merged
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.
Description
Adds Word to PDF, a new tool that saves a
.docxas a PDF on the user's device (nothing is uploaded). Ream reads the document and lays the pages out itself, so the Word preview in the other tools and the saved file come from the same converter.Type of Change
Changes Made
word-to-pdf(manifest,run.ts, panel with the Fonts panel, page text for search engines), registered with the other tools. The old Word preview now uses it.PdfDrawing; faster text measuring (word widths cached).AGENTS.md(milestone M8, reader and layout notes), panel note and FAQ.Testing
Typecheck, 888 unit tests, build,
seo-checkand the notices check all pass locally. A few hundred deliberately damaged copies of real and generated documents were also converted: none hung or crashed, each gave a PDF or a clear error.Unit Tests
Manual Testing
.docx(for example one exported from Google Docs) and check the live preview.Checklist
Additional Notes
.docfiles, right-to-left and complex scripts, shapes other than pictures and text boxes, equations, comments and tracked changes, and text wrapped round a picture's outline.