Importing PDF and Word Files

Most work in Return starts with a file you already have: a contract as a PDF, a draft in Word. Return opens these files as a read-only preview. To edit the text, annotate it, or ask the AI about it, you convert the file first. This article explains what that step does and what to check afterwards.

Why Return converts

Return works on text. The AI reads text, annotations attach to text, and every change the AI proposes is a change to text that you accept or reject.

A PDF or a Word file is not plain text. It is a description of a printed page: fonts, positions, margins. So Return makes a text copy of the document and works on that copy. The copy is a Markdown file, which is a plain text file with simple marks for headings, bold, and lists. You don’t have to learn Markdown. Return shows it formatted, and the file opens in any text editor if you ever stop using Return.

How to convert

  1. Click the file in the Explorer.
  2. Return shows a preview of the original.
  3. Click Convert to Markdown. The button is in the TopBar, next to the file name, and in the panel on the right.
  4. The converted document opens in the editor, ready for AI and annotations.

Conversion usually takes a few seconds.

A file that you open with Open document or drag into Return is converted straight away, without the preview step. See “Opening or dragging a file in” below.

Your original stays untouched

Converting never changes or moves the original file. Return reads it and writes a new file next to it, in the same folder, with the same name and the .md ending. Lease Agreement.pdf becomes Lease Agreement.md. If that name is taken, Return uses Lease Agreement-2.md.

The two files stay linked as long as they are in the same folder:

If you move one of them to another folder, both files still work, but these buttons no longer connect them.

Opening or dragging a file in

A PDF or Word file that you open with Open document in the TopBar, drag onto the editor, or drop onto a folder in the Explorer skips the preview. Return converts it right away and opens the result as a new, unsaved document. The original is not changed here either.

Nothing is written to disk until you save. When you save, Return asks where to put the document.

Pictures appear after you save. Until then the document shows a line of text such as ![](assets/img-1a2b3c4d5e6f.png) where each picture will be. Saving places the pictures in an assets folder next to the saved document, and they show up in the editor.

Supported formats

FormatSupported
PDF (.pdf)Yes
Word (.docx)Yes
OpenDocument (.odt)Yes
Rich Text (.rtf)Yes
Web page (.html, .htm)Yes
Old Word (.doc)No. Save it as .docx in Word or LibreOffice, then open that file.

Files larger than 50 MB are not converted.

What carries over, and what does not

Conversion keeps the words and the basic structure. It does not keep the look of the page. Fonts, colors, margins, and page breaks are gone, by design.

Word (.docx)

Kept: text, headings (the Heading 1 to Heading 6 styles, including headings that Word numbers automatically), automatic numbering, bulleted lists with their nesting, tables, bold, italic, line breaks, footnotes and endnotes, links with their web or email address, and pictures (PNG, JPEG, GIF, WebP).

Numbering. Word numbers clauses for you and recalculates them as you edit. Return writes those numbers into the text as Word displayed them: 1., 4.2., (a). They read the same in the editor and in every export, and the AI can refer to them. They do not renumber themselves when you add or remove a clause in Return, exactly like numbers you typed by hand. If the original used unusual numbering (lists continued across sections, restarts made by hand), compare the numbers with the original with View Source.

Tables. Every table becomes a table in the document. Cells merged across columns or rows become empty cells, so the columns stay aligned. A table placed inside another table’s cell is kept as text in that cell, and Return warns you. Word documents often use tables for layout, for example two-column signature blocks: these come through as tables too.

Footnotes appear as a numbered marker in the text, with the footnote text at the end of the document, in the form Obsidian and GitHub use for footnotes. Return shows them as text.

Pictures. Each picture becomes a file in an assets folder next to the converted document, and the document shows it where it was in the original. A picture that sat in the middle of a paragraph appears right after that paragraph. The files are named after their content, so converting the same document twice never creates duplicates or overwrites anything. Pictures inside a table cell are kept as a link in the cell.

Not kept:

PDF

Kept: text, paragraphs, headings (recognized by their larger font size), numbering exactly as printed on the page, and pictures: signatures, stamps, photographs and other images placed on the page land in the assets folder next to the converted document and appear where they were on the page.

Pictures. Return skips what is decoration rather than content: a logo repeated in the same place on every page, a background behind the text, tiny icons and rules. It tells you how many such images it left out. Return captures up to 64 pictures per PDF, and stops earlier if they add up to more than 100 MB or take longer than 20 seconds to prepare. Beyond that it leaves a marker and warns you.

Not kept:

Two things to expect in longer PDFs: page headers, footers, and page numbers show up as separate lines in the text, and a paragraph that runs across a page break is split in two.

Other formats

Scanned PDFs

A scanned PDF is a set of photographs of pages. There is no text inside it to copy, and Return does not read text from images. Converting a scan gives you the pages as pictures: each scanned page appears in the document as an image named “Scanned page N” that you can read in the editor, and Return warns you which pages were scans and that their text was not recognized. The picture limits described above apply to scanned pages too, so a long scan is captured only in part: the pages beyond the limit are left out with a marker and a warning. In Cloud mode the AI can look at those page images when you ask it to, as long as the document is inside your workspace and the picture is under 3 MB (a dense colour scan can be larger).

A quick test: open the PDF and try to select a sentence with the mouse. If you can’t, it is a scan. To search or edit the text of a scan, run it through text recognition (OCR) in your scanner software or PDF application first, then convert the result.

Check the result

Treat the converted document as a working copy and the original as the record. Before you rely on the converted text:

  1. Read the warnings Return shows after conversion.
  2. Use View Source to compare against the original, especially clause numbering, tables, and anything that was an image.
  3. Fix what matters directly in the editor.

Converting again

Re-convert, next to View Source, runs the conversion again and replaces the content of the converted document. Edits you made in it are lost, so Return asks for confirmation first. Use it when the original has changed and you want to start over.

Privacy

Conversion runs on your computer. The file is not uploaded anywhere to be converted.

Troubleshooting