Both formats turn a notebook into a document. Only one of them is right for the person waiting to receive it, and the choice has less to do with the notebook than with what happens after they open it.
Here is the short version: PDF when the document is finished; Word when someone else has to edit it. Everything else follows from that.
The difference in one table
| DOCX | ||
|---|---|---|
| Layout is fixed | Yes | No — reflows with fonts and page size |
| Text selectable and searchable | Yes | Yes |
| Reviewer can comment or track changes | Only with an annotation layer | Natively |
| Figures keep their position | Yes | Yes, but they move with edits |
| Tables stay intact | Yes | Yes, and become editable |
| LaTeX math | Rendered as typeset math | Converted to Word equations or images |
| Code formatting | Fixed, syntax colours preserved | Shaded monospace blocks, editable |
| Opens without software | Any browser or reader | Word, Google Docs, LibreOffice, Pages |
| Submission portals accept it | Almost always | Sometimes, sometimes not |
| File size | Smaller for rasterised pages, larger for vector figures | Larger, especially with many images |
When PDF is the right answer
Choose PDF when the document is a record:
- Submitting to a journal, a conference or a course portal. These expect a fixed document with page numbers. A DOCX that reflows on another machine is a support ticket waiting to happen.
- Sending a report to a client. You want them to see the pages you approved, not a version their Word installation reflowed.
- Printing. A PDF knows its page size; Word decides at print time.
- Archiving. A PDF renders the same in ten years. A DOCX depends on the fonts and the version of Word that opens it.
- Reading on screen. Page breaks, a table of contents and a title block make a 40-page notebook navigable in a way a scrolling document is not.
The cost is that a PDF is a dead end for collaboration. Comments require an annotation tool, and nobody is tracking changes in it.
When Word is the right answer
Choose DOCX when the document is a draft:
- A supervisor or editor will mark it up. Tracked changes and comments are the whole point, and they are native to Word.
- Someone will reuse the prose. A literature review, a methods section or a report template is easier to lift out of a DOCX than a PDF.
- The recipient’s workflow is Word. Corporate templates, style guides and document management systems often require it.
- You need to fix one sentence. Editing the DOCX is faster than editing the notebook, re-exporting and re-sending.
- The document will be translated. Translators work in DOCX; PDF translation is a post-processing step.
The cost is fidelity. Fonts, spacing, table widths and figure placement all depend on the machine that opens the file.
What actually survives the conversion
The two formats preserve different things, and neither preserves everything.
Prose. Markdown headings, lists, bold and links convert cleanly to both. Word gets real heading styles, which means a navigable outline and an automatic table of contents. PDF gets typography that looks the same everywhere.
Code. Both keep monospace formatting and syntax colours. Word’s code blocks are editable — useful if the code is meant to be copied — and easier to break accidentally. PDF code is fixed, which is what you want for a submission.
Figures. Both embed images at their stored resolution. In Word, a figure can be dragged, resized and wrapped; in PDF, it sits where the layout put it. If a figure was rendered at 72 dpi in the notebook, no converter can add detail — the notebook itself needs a higher dpi in savefig or plt.figure.
Tables. Word tables are editable and can be restyled with a table style. PDF tables are fixed but can split at row boundaries with the header repeated, which matters for a long DataFrame.
Math. This is where conversions differ most. LaTeX in markdown cells becomes typeset math in a PDF. In Word it becomes an equation object or an image, depending on the converter, and complex expressions can lose fidelity. If the math matters, check it in the output rather than assuming.
Outputs and tracebacks. Long text outputs, ANSI colours and error tracebacks are the first things to be truncated by a naive converter. Both formats can hold them; not every tool keeps them.
The mistake to avoid
The common failure is converting for the wrong audience:
- Sending a DOCX to a journal because it was easier to produce, then being asked for a PDF.
- Sending a PDF to an editor who needs to comment, forcing them to retype your paragraphs.
- Sending a screenshot PDF — one where each page is an image — to someone who needs to search the text or copy a code sample.
- Sending a notebook to a reader who does not have Jupyter, which is the original problem both formats solve.
If you are unsure, ask one question: does the recipient need to change this document, or only read it? Change → Word. Read → PDF.
How to produce both from the same notebook
You do not have to choose permanently. Convert once to PDF for the record, and once to DOCX for the review copy.
- Convert IPYNB to PDF in the browser — code, plots, tables and math laid out for the page, with a preview of where pages break.
- Convert IPYNB to DOCX — a real Word document with headings, shaded code, lists and outputs that Word, Google Docs, LibreOffice and Pages all open.
Both run on your device, so a notebook under an NDA never leaves the machine. If the notebook is the source of a longer document, convert it to Markdown and write in your editor of choice instead — sometimes the right answer is not a document at all, but a draft you keep working on.
A quick decision guide
- Is it finished? Yes → PDF. No → Word.
- Will anyone comment on it? Yes → Word.
- Is it going to a portal or a printer? Yes → PDF.
- Does it contain complex math? Prefer PDF, and check the Word output if you need both.
- Does the recipient need to copy the code? Word is friendlier; PDF still works if the text is selectable.
- Is the notebook confidential? Use a converter that runs locally, whichever format you pick.
The format is a message about how the document should be used. Pick the one that matches the next thing the reader will do with it.