<dependency>
    <groupId>com.groupdocs</groupId>
    <artifactId>groupdocs-viewer-cloud</artifactId>
    <version>20.3</version>
</dependency>
copied!  
compile(group: 'com.groupdocs', name: 'groupdocs-viewer-cloud', version: '20.3')
copied!  
<dependency org="com.groupdocs" name="groupdocs-viewer-cloud" rev="20.3">
    <artifact name="groupdocs-viewer-cloud" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.groupdocs" % "groupdocs-viewer-cloud" % "20.3"
copied!  

Penampil Dokumen Java Cloud REST API

banner

Product Page | Docs | Live Demos | Swagger UI | Code Samples | Blog | Free Support | Free Trial

GroupDocs.Viewer Cloud SDK for Java membantu Anda membangun Cloud Document Rendering & Viewing Java Apps yang berfungsi tanpa memasang perangkat lunak pihak ketiga. Itu adalah pembungkus di sekitar GroupDocs.Viewer Cloud REST APIs.

Fitur Cloud Document Viewing SDK

Silakan kunjungi Official Documentation kami untuk daftar fitur yang lebih lengkap.

Format File Penampil Dokumen yang Didukung

Microsoft Word®: DOC, DOCM, DOCX, DOT, DOTM, DOTX, RTF, TXT
OpenOffice Writer®: ODT, OTT
Microsoft Excel®: XLS, XLSB, XLSM, XLSX
OpenOffice Calc®: ODS, OTS
Microsoft PowerPoint®: PPT, PPTX, PPTM, PPS, PPSX, POTX, POTM
OpenOffice Impress®: ODP, OTP
Microsoft Visio®: VDW, VDX, VSD, VSDM, VSDX, VSS, VSSM, VSSX, VST, VSTM, VSTX, VSX, VTX
Microsoft OneNote®: SATU
Microsoft Project®: MMP, MPT
Microsoft Outlook®: EML, MSG, OST, PST
Apple® Mail: EMLX
CAD: DGN, DWF, DWG, DXF, IFC, STL
eBuku: EPUB, MOBI
Gambar: BMP, DJVU, DNG, DIG, ICO, JP2, JPG, JPEG, ODG, PCL, PNG, TIF, TIFF, WEBP
Pencitraan Medis: DCM
Adobe Postscript®: PSD
Catatan tambahan: PS, EPS
Gambar Vektor: SVG
Markup: HTML, MHT, MHTML
Tata Letak Tetap: PDF, XPS
LaTeX: TEX
File Meta: CGM, EMF, WMF

Persyaratan

Membangun pustaka klien API memerlukan:

  1. Jawa 1.7+
  2. Maven

Prasyarat

Untuk menggunakan GroupDocs.Viewer Cloud SDK for Java, Anda perlu mendaftarkan akun dengan GroupDocs Cloud dan mencari/membuat ID Klien dan Rahasia Klien di Cloud Dashboard. Tersedia kuota gratis. Untuk detail selengkapnya, lihat GroupDocs Cloud Pricing.

Instal GroupDocs.Viewer-Cloud dari Maven

Tambahkan repositori Cloud GroupDocs ke pom.xml aplikasi Anda

<repository>
    <id>repository.groupdocs.cloud</id>
    <name>repository.groupdocs.cloud</name>
    <url>https://releases.groupdocs.cloud/java/repo/</url>
</repository>

Instal dari sumber

Untuk menginstal pustaka klien API ke repositori Maven lokal Anda, cukup jalankan:

mvn clean install

Untuk menyebarkannya ke repositori Maven jarak jauh, konfigurasikan pengaturan repositori dan jalankan:

mvn clean deploy

Lihat OSSRH Guide untuk informasi lebih lanjut.

Pengguna Maven

Tambahkan dependensi ini ke POM proyek Anda:

<dependency>
    <groupId>com.groupdocs</groupId>
    <artifactId>groupdocs-viewer-cloud</artifactId>
    <version>21.12</version>
    <type>pom</type>
</dependency>

Yang lain

Mula-mula buat JAR dengan menjalankan:

mvn clean package

Kemudian instal JAR berikut secara manual:

  • target/groupdocs-viewer-cloud-21.12.jar
  • target/lib/*.jar

Memulai

Harap ikuti petunjuk Quick Start.

Render Dokumen Word® termasuk Lacak Perubahan melalui Java Cloud SDK

// For complete examples and data files, please go to https://github.com/groupdocs-viewer-cloud/groupdocs-viewer-cloud-java-samples
string MyClientSecret = ""; // Get Client Id and Client Secret from https://dashboard.groupdocs.cloud
string MyClientId = ""; // Get Client Id and Client Secret from https://dashboard.groupdocs.cloud

Configuration configuration = new Configuration(MyClientId, MyClientSecret);
ViewApi apiInstance = new ViewApi(configuration);

FileInfo fileInfo = new FileInfo();
fileInfo.setFilePath("SampleFiles/with_tracked_changes.docx");
ViewOptions viewOptions = new ViewOptions();
viewOptions.setFileInfo(fileInfo);
viewOptions.setViewFormat(ViewFormatEnum.HTML);
HtmlOptions renderOptions = new HtmlOptions();
WordProcessingOptions wordProcessingOptions = new WordProcessingOptions();
wordProcessingOptions.setRenderTrackedChanges(true);
renderOptions.setWordProcessingOptions(wordProcessingOptions);
viewOptions.setRenderOptions(renderOptions);

ViewResult response = apiInstance.createView(new CreateViewRequest(viewOptions));

Otorisasi & Otentikasi

Authentication schemes yang ditentukan untuk API adalah sebagai berikut:

JWT

Product Page | Docs | Live Demos | Swagger UI | Code Samples | Blog | Free Support | Free Trial

VersionRelease Date
21.1225 Desember 2021
21.1025 Oktober 2021
21.81 Agustus 2021
21.318 Maret 2021
20.51 Mei 2020
20.31 Maret 2020
19.51 Mei 2019
19.425 April 2019
19.3.25 April 2019
19.37 Maret 2019
18.119 November 2018
18.725 Juli 2018
18.525 Mei 2018