Document Directory

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        
ParametersTypeDescription
*fileStringSpecify the URL for the document previewed on the left. For details about supported link types, please refer to the "Document Links" section.
*translatedFileStringSpecify 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

CategoryFormatFile Size LimitRemarks
MS Officedocx、xlsx、pptx

docx: 50 M

xlsx: 10 M

pptx: 50 M

-
Adobepdf、ai、indd-Supports encrypted PDF files.
Open Officeodt、ods、odp--
Ebookepub--
Image and Videojpg、jpeg、png、srt--
Programjson、html、xml、go、yml、yaml、php--
Audiowav、ape、mp3、aac、flac、alac、ogg、wma、ac3、dts、amr、aiff、m4a--
Othertxt、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.

Online Demo

File Compare Example