mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
bc184d445f
Uploaded .docx files are converted to PDF on the server using a Gotenberg sidecar before entering the normal envelope pipeline. The feature is opt-in via NEXT_PRIVATE_DOCUMENT_CONVERSION_URL; when unset, only PDF uploads are accepted. A per-process circuit breaker opens for 30s after a conversion failure to shed load. Ships a dev Dockerfile that layers Microsoft Core Fonts and additional language fonts onto the upstream Gotenberg image for better fidelity. Co-authored-by: Ephraim Duncan <55143799+ephraimduncan@users.noreply.github.com> Co-authored-by: Ephraim Duncan <55143799+ephraimduncan@users.noreply.github.com>
222 lines
8.4 KiB
Plaintext
222 lines
8.4 KiB
Plaintext
---
|
|
title: Upload Documents
|
|
description: Upload documents to Documenso to prepare them for signing. Covers supported formats, file size limits, and upload methods.
|
|
---
|
|
|
|
import { Accordion, Accordions } from 'fumadocs-ui/components/accordion';
|
|
import { Callout } from 'fumadocs-ui/components/callout';
|
|
import { Step, Steps } from 'fumadocs-ui/components/steps';
|
|
|
|
## Limitations
|
|
|
|
| Limitation | Value |
|
|
| ----------------------- | ----------------------------------- |
|
|
| Supported formats | PDF, DOCX |
|
|
| Maximum file size | 50MB (configurable for self-hosted) |
|
|
| Encrypted PDFs | Not supported |
|
|
| Password-protected PDFs | Not supported |
|
|
| Legacy `.doc` files | Not supported (convert to DOCX) |
|
|
|
|
<Callout type="warn">
|
|
Documenso does not support password-protected or encrypted PDF files. Remove encryption before
|
|
uploading.
|
|
</Callout>
|
|
|
|
## Supported Formats
|
|
|
|
Documenso accepts two file formats:
|
|
|
|
- **PDF** (`.pdf`): used as-is. **Recommended.**
|
|
- **Word** (`.docx`): converted to PDF on the server during upload. The converted PDF is what recipients sign.
|
|
|
|
Other formats (`.doc`, `.odt`, `.rtf`, images) are not supported. Convert them to PDF or DOCX before uploading.
|
|
|
|
<Callout type="warn">
|
|
**Upload a PDF whenever you can.** DOCX files are converted to PDF using LibreOffice, which is not
|
|
byte-identical to Microsoft Word. Spacing, line breaks, fonts, and complex elements (tables,
|
|
charts, headers, footers) can shift in the converted PDF. For the final document to look exactly
|
|
the way you designed it, export to PDF from Word, Google Docs, or Pages and upload the PDF
|
|
directly.
|
|
</Callout>
|
|
|
|
<Callout type="info">
|
|
DOCX support requires the document conversion service. It is enabled on
|
|
[documenso.com](https://app.documenso.com). Self-hosted instances must
|
|
[configure it](/docs/self-hosting/configuration/advanced/document-conversion) before DOCX uploads
|
|
are accepted.
|
|
</Callout>
|
|
|
|
## Upload Methods
|
|
|
|

|
|
|
|
You can upload documents in two ways:
|
|
|
|
### Drag and Drop
|
|
|
|
{/* prettier-ignore */}
|
|
<Steps>
|
|
<Step>
|
|
### Go to the Documents dashboard
|
|
|
|
Open your [Documents dashboard](https://app.documenso.com/documents).
|
|
|
|
</Step>
|
|
<Step>
|
|
### Drag and drop your file
|
|
|
|
Drag a PDF or DOCX file from your computer and drop it anywhere on the page.
|
|
|
|
</Step>
|
|
<Step>
|
|
### Wait for the upload to complete
|
|
|
|
The document will process and the editor will open when ready. DOCX files take a few extra seconds while they are converted to PDF.
|
|
|
|
</Step>
|
|
</Steps>
|
|
|
|
### File Picker
|
|
|
|
{/* prettier-ignore */}
|
|
<Steps>
|
|
<Step>
|
|
### Go to the Documents dashboard
|
|
|
|
Open your [Documents dashboard](https://app.documenso.com/documents).
|
|
|
|
</Step>
|
|
<Step>
|
|
### Open the upload dialog
|
|
|
|
Click **Upload Document** in the top right.
|
|
|
|
</Step>
|
|
<Step>
|
|
### Select your file
|
|
|
|
Choose a PDF or DOCX file from your computer.
|
|
|
|
</Step>
|
|
<Step>
|
|
### Wait for the upload to complete
|
|
|
|
The document will process and the editor will open when ready.
|
|
|
|
</Step>
|
|
</Steps>
|
|
|
|
## DOCX Conversion
|
|
|
|
We always recommend uploading a PDF rather than a DOCX. If you have the original document open in Word, Google Docs, or Pages, export to PDF from there and upload the PDF. The result is guaranteed to match what you see on screen.
|
|
|
|
If you do upload a `.docx` file, Documenso converts it to PDF before adding it to the envelope. The original `.docx` is discarded. Only the converted PDF is stored, signed, and downloaded.
|
|
|
|
Things to keep in mind when uploading DOCX:
|
|
|
|
- **The converted PDF will not be pixel-identical to your Word document.** Conversion uses LibreOffice, which renders most documents faithfully but differs from Microsoft Word in subtle ways. Spacing, font metrics, line breaks, and complex layout features can shift.
|
|
- **Always review the converted PDF before adding fields or sending.** Open the document in the editor and scroll through every page to confirm it looks the way you expect.
|
|
- **Form controls are flattened.** Word content controls (drop-downs, date pickers, checkboxes) become static text or graphics. Use Documenso fields for anything that needs to be filled in.
|
|
- **Fonts not installed on the server fall back to substitutes.** On documenso.com, common fonts (Calibri, Arial, Times New Roman, etc.) are installed. On self-hosted instances, font fidelity depends on the operator's setup.
|
|
- **Tracked changes and comments are preserved as they appear in Word.** Accept or reject changes and remove comments before uploading if you do not want them in the final document.
|
|
|
|
If the converted PDF does not match what you expect, export the document to PDF from Word, Google Docs, or another tool and upload the PDF directly.
|
|
|
|
## Uploading Multiple Documents
|
|
|
|
You can upload multiple files at once to create a single envelope containing multiple documents. The number of files you can upload per envelope depends on your plan.
|
|
|
|
To upload multiple files:
|
|
|
|
- Select multiple PDF or DOCX files when using the file picker, or
|
|
- Drag and drop multiple files at once
|
|
|
|
You can mix PDF and DOCX files in the same upload. All files become part of the same envelope and share the same recipients and signing workflow.
|
|
|
|
<Callout type="info">
|
|
If you need separate signing workflows for each document, upload them individually.
|
|
</Callout>
|
|
|
|
## What Happens After Upload
|
|
|
|
When you upload a document:
|
|
|
|
1. **Processing**: Documenso validates the PDF and extracts page information
|
|
2. **Draft created**: A new document is created in `Draft` status
|
|
3. **Editor opens**: You're taken to the document editor to add recipients and fields
|
|
|
|

|
|
|
|
The document remains in `Draft` status until you send it. You can close the editor and return later - draft documents are saved automatically.
|
|
|
|
## Troubleshooting
|
|
|
|
<Accordions type="multiple">
|
|
<Accordion title="File is larger than 50MB">
|
|
Reduce the file size before uploading:
|
|
|
|
- Compress images within the document
|
|
- Remove unnecessary pages
|
|
- Use a PDF compression tool (for PDFs) or save with images downsampled (for DOCX)
|
|
|
|
</Accordion>
|
|
|
|
<Accordion title="Only PDF and DOCX files are allowed">
|
|
Documenso accepts PDF and DOCX. For other formats (`.doc`, `.odt`, `.rtf`, etc.), export to PDF
|
|
from your editor (Word, Google Docs, Pages) and upload the PDF.
|
|
|
|
If you are self-hosted and DOCX is rejected, the [document conversion
|
|
service](/docs/self-hosting/configuration/advanced/document-conversion) is not configured on your
|
|
instance.
|
|
|
|
</Accordion>
|
|
|
|
<Accordion title="DOCX upload fails with a conversion error">
|
|
The document conversion service was reachable but could not convert the file. Common causes:
|
|
|
|
- The `.docx` file is corrupted. Open it in Word, save a new copy, and try again.
|
|
- The file uses very unusual fonts or embedded objects that LibreOffice cannot render.
|
|
- The file is unusually large or complex and exceeded the conversion timeout.
|
|
|
|
If the problem persists, export the document to PDF from Word and upload the PDF directly.
|
|
|
|
</Accordion>
|
|
|
|
<Accordion title="DOCX upload fails with 'conversion service unavailable'">
|
|
The document conversion service is down or temporarily unreachable. Try again in a minute. If you
|
|
self-host, check the [document conversion
|
|
service](/docs/self-hosting/configuration/advanced/document-conversion) logs.
|
|
</Accordion>
|
|
|
|
<Accordion title="You cannot upload encrypted PDFs">
|
|
The PDF is password-protected or encrypted. Open it in a PDF reader, remove the security settings,
|
|
and save a new copy.
|
|
</Accordion>
|
|
|
|
<Accordion title="You have reached your document limit">
|
|
Your plan has a monthly document limit. Options:
|
|
|
|
- Wait until your limit resets next month
|
|
- Upgrade to a higher plan
|
|
- Delete unused draft documents (this does not restore quota)
|
|
|
|
</Accordion>
|
|
|
|
<Accordion title="Upload fails with no error message">
|
|
Check that:
|
|
|
|
- Your internet connection is stable
|
|
- The file is a valid PDF (try opening it in a PDF reader)
|
|
- The file is not corrupted
|
|
|
|
</Accordion>
|
|
</Accordions>
|
|
|
|
---
|
|
|
|
## See Also
|
|
|
|
- [Add Recipients](/docs/users/documents/add-recipients) - Specify who needs to sign
|
|
- [Add Fields](/docs/users/documents/add-fields) - Place signature and other fields on the document
|
|
- [Send Documents](/docs/users/documents/send) - Send the document and monitor progress
|