Online Document Preview
We provide 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 link you are using allows cross-origin access (CORS).
Online Demo
File Compare ExampleIntegration via iframe
1
2<iframe
3 {...otherProps}
4 src={https://otranslator.com/file-compare?file={encodeURIComponent(file)}&translatedFile={encodeURIComponent(translatedFile)}}
5/>
6 | Parameters | Type | Default | Description | Example |
|---|---|---|---|---|
| *file | String | - | Specify the URL for the document previewed on the left. Supported Links: - Google Cloud Storage (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定左侧预览文档的URL,支持的链接: - Google云存储 (GCS) | - |
| *translatedFile | String | - | Specify the URL for the document previewed on the right. Supported Links: - Google Cloud Storage (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS)指定右侧预览文档的URL,支持的链接: - Google云存储 (GCS) | - |
| download | String | '1' |
| - |
| password | String | - | Password parameter is used for encrypted PDF files. For encrypted PDFs, a valid password must be provided to properly preview the document. | - |
Supported Formats
| Category | Format | File Size Limit | Notes |
|---|---|---|---|
| MS Office | docx、xlsx、pptx | docx: 50 M xlsx: 10 M pptx: 50 M | - |
| Adobe | pdf、ai、indd、idml | - | Support for encrypted PDF files. |
| Open Office | odt、ods、odp | - | - |
| E-book | epub | - | - |
| Comics | zip、cbz、cbr | - | - |
| Images and videos | jpg、jpeg、png、webp、svg、srt、ass、ssa、vtt | - | - |
| Programs | json、resjson、html、xml、go、yml、yaml、php、plist、stringsdict | - | - |
| Audio | wav、ape、mp3、aac、flac、alac、ogg、wma、ac3、dts、amr、aiff、m4a | - | - |
| Others | txt、md、po、xlf、xliff、csv、tsv、tex、arxiv | md: 100 KB csv: 400 KB tsv: 400 KB | - |
Why are file size limits implemented?
Rendering large files in browsers—particularly DOCX and PPTX formats—may result in significant delays or system unresponsiveness. Based on our experience, we have established reasonable file size limitations to optimize user experience.
What happens if a file exceeds the size limit?
If the file exceeds the size limit, the page will prompt users to download the file for preview and provide a download link.