Online Document Preview
We offer an online document preview service that can be seamlessly integrated into your system, helping you enhance your document management experience.
Please ensure that the document links you use allow cross-origin access (CORS).
Integration via iFrame
html
1
2<iframe
3 {...otherProps}
4 src={https://otranslator.com/file-compare?file={encodeURIComponent(file)}&translatedFile={encodeURIComponent(translatedFile)}}
5/>
6
Parameters | Type | Description |
---|---|---|
*file | String | Specify the URL for the document previewed on the left. For details about supported link types, please refer to the "Document Links" section. |
*translatedFile | String | Specify the URL for the document previewed on the right. For details about supported link types, please refer to the "Document Links" section. |
Supported Links
Google Cloud Storage (GCS)
Supported Formats
Category | Format | File Size Limit | Remarks |
---|---|---|---|
MS Office | docx、xlsx、pptx | docx: 50 M xlsx: 10 M pptx: 50 M | - |
Adobe | pdf、ai、indd | - | Supports encrypted PDF files. |
Open Office | odt、ods、odp | - | - |
Ebook | epub | - | - |
Image and Video | jpg、jpeg、png、srt | - | - |
Program | json、html、xml、go、yml、yaml、php | - | - |
Audio | wav、ape、mp3、aac、flac、alac、ogg、wma、ac3、dts、amr、aiff、m4a | - | - |
Other | txt、md、po、xlf、xliff、csv、tsv、tex、arxiv | md: 100 KB csv: 400 KB tsv: 400 KB | - |
Why is a file size limit established?
Rendering large files in the browser—especially DOCX and PPTX formats—can cause noticeable lag or unresponsiveness. Based on our experience, we have set a reasonable file size limit to enhance the user experience.
What happens if the file exceeds the size limit?
If the file exceeds the size limit, the page will prompt the user to download the file for preview and provide a download link.