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

Conversion de documents API REST Java Cloud

banner

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

GroupDocs.Conversion Cloud SDK for Java vous aide à créer des applications Java de conversion de documents dans le cloud qui fonctionnent sans installer de logiciel tiers. Il s’agit d’un wrapper autour de GroupDocs.Conversion Cloud REST APIs.

Fonctionnalités du SDK de conversion de documents dans le cloud

Formats de fichiers de conversion de documents pris en charge

Microsoft Word® : DOC, DOCM, DOCX, DOT, DOTM, DOTX, RTF, TXT
OpenOffice Writer® : ODT, OTT
Microsoft Excel® : XLS, XLS2003, XLSB, XLSM, XLSX, CSV
OpenOffice Calc® : ODS
Microsoft PowerPoint® : PPS, PPSX, PPT, PPTX
OpenOffice Impress® : ODP
Microsoft Visio® : VDW, VDX, VSD, VSDX, VSS, VST, VSX, VTX
Microsoft Outlook® : EML, MSG
Courrier Apple® : EMLX
Microsoft Project® : MPP, MPT
Adobe Photoshop® : PSD
CAO : DWG, DXF
Images : BMP, GIF, ICO, JPG, JPEG, PNG, TIF, TIFF
Images vectorielles : SVG
Marquage : HTM, HTML, MHT
Mise en page fixe : PDF, XPS

Conditions

La création de la bibliothèque cliente de l’API nécessite :

  1. Java 1.7+
  2. Maven

Conditions préalables

Pour utiliser GroupDocs.Conversion Cloud SDK pour Java, vous devez créer un compte avec GroupDocs Cloud et rechercher/créer l’ID client et le secret client sur Cloud Dashboard. Un quota gratuit est disponible. Pour plus de détails, consultez GroupDocs Cloud Pricing.

Installez GroupDocs.Conversion-Cloud depuis Maven

Ajoutez le référentiel GroupDocs Cloud à votre application pom.xml

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

Installer depuis la source

Pour installer la bibliothèque cliente de l’API dans votre référentiel Maven local, exécutez simplement :

mvn clean install

Pour le déployer sur un référentiel Maven distant à la place, configurez les paramètres du référentiel et exécutez :

mvn clean deploy

Reportez-vous au OSSRH Guide pour plus d’informations.

Utilisateurs Maven

Ajoutez cette dépendance au POM de votre projet :

<dependency>
    <groupId>com.groupdocs</groupId>
    <artifactId>groupdocs-conversion-cloud</artifactId>
    <version>22.3</version>
    <type>pom</type>
</dependency>

Les autres

Générez d’abord le JAR en exécutant :

mvn clean package

Ensuite, installez manuellement les fichiers JAR suivants :

  • target/groupdocs-conversion-cloud-22.3.jar
  • cible/lib/*.jar

Commencer

Veuillez suivre les instructions Quick Start.

Exemple de code Java pour convertir le document Cloud DOCX en Cloud PDF

// For complete examples and data files, please go to https://github.com/groupdocs-conversion-cloud/groupdocs-conversion-cloud-java-samples
String MyClientSecret = ""; // Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud
String MyClientId = ""; // Get ClientId and ClientSecret from https://dashboard.groupdocs.cloud

Configuration configuration = new Configuration(MyClientId, MyClientSecret);

// Create API instance
ConvertApi apiInstance = new ConvertApi(configuration);

// Prepare convert settings
ConvertSettings settings = new ConvertSettings();
settings.setFilePath("WordProcessing/four-pages.docx");
settings.setFormat("pdf");
settings.setOutputPath("converted");

List<StoredConvertedResult> result = apiInstance.convertDocument(new ConvertDocumentRequest(settings));

Autorisation et authentification

Authentication schemes défini pour l’API est le suivant :

JWT

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

VersionRelease Date
22.106 octobre 2022
22.36 octobre 2022
21.1025 janvier 2022
21.1225 janvier 2022
19.325 janvier 2022
19.425 janvier 2022
20.1125 janvier 2022
20.325 janvier 2022
21.18 octobre 2021
21.915 septembre 2021
21.41 avril 2021
20.212 février 2020
19.530 mai 2019

GroupDocs Java REST API Maven SDK Java SDK Cloud REST REST API Cloud API MIT JWT oauth GroupDocs.Total Cloud GroupDocs.Conversion Cloud JAR document automation document automation cloud document DOC DOCM DOCX DOT DOTM DOTX RTF TXT ODT OTT XLS XLS2003 XLSB XLSM XLSX CSV ODS PPS PPSX PPT PPTX ODP VDW VDX VSD VSDX VSS VST VSX VTX EML MSG EMLX MPP MPT PSD DWG DXF BMP GIF ICO JPG JPEG PNG TIF TIFF SVG HTM HTML MHT PDF XPS DOCX to TIFF DOCX to TIF DOCX to JPG DOCX to JPEG DOCX to PNG DOCX to GIF DOCX to BMP DOCX to ICO DOCX to PSD DOCX to WMF DOCX to EMF DOCX to DCM DOCX to DICOM DOCX to WEBP DOCX to SVG DOCX to JP2 DOCX to EMZ DOCX to WMZ DOCX to SVGZ DOCX to TGA DOCX to PSB DOCX to HTML DOCX to HTM DOCX to MHT DOCX to MHTML DOCX to DOC DOCX to DOCM DOCX to DOCX DOCX to DOT DOCX to DOTM DOCX to DOTX DOCX to RTF DOCX to ODT DOCX to OTT DOCX to TXT DOCX to MD DOCX to PDF DOCX to EPUB DOCX to XPS DOCX to TEX DOCX to PPT DOCX to PPS DOCX to PPTX DOCX to PPSX DOCX to ODP DOCX to OTP DOCX to POTX DOCX to POT DOCX to POTM DOCX to PPTM DOCX to PPSM DOCX to FODP DOC to TIFF DOC to TIF DOC to JPG DOC to JPEG DOC to PNG DOC to GIF DOC to BMP DOC to ICO DOC to PSD DOC to WMF DOC to EMF DOC to DCM DOC to DICOM DOC to WEBP DOC to SVG DOC to JP2 DOC to EMZ DOC to WMZ DOC to SVGZ DOC to TGA DOC to PSB DOC to HTML DOC to HTM DOC to MHT DOC to MHTML DOC to DOC DOC to DOCM DOC to DOCX DOC to DOT DOC to DOTM DOC to DOTX DOC to RTF DOC to ODT DOC to OTT DOC to TXT DOC to MD DOC to PDF DOC to EPUB DOC to XPS DOC to TEX DOC to PPT DOC to PPS DOC to PPTX DOC to PPSX DOC to ODP DOC to OTP DOC to POTX DOC to POT DOC to POTM DOC to PPTM DOC to PPSM DOC to FODP PPTX to DOC PPTX to DOCM PPTX to DOCX PPTX to DOT PPTX to DOTM PPTX to DOTX PPTX to RTF PPTX to ODT PPTX to OTT PPTX to TXT PPTX to MD PPTX to PDF PPTX to EPUB PPTX to XPS PPTX to TEX PPTX to TIFF PPTX to TIF PPTX to JPG PPTX to JPEG PPTX to PNG PPTX to GIF PPTX to BMP PPTX to ICO PPTX to PSD PPTX to WMF PPTX to EMF PPTX to DCM PPTX to DICOM PPTX to WEBP PPTX to SVG PPTX to JP2 PPTX to EMZ PPTX to WMZ PPTX to SVGZ PPTX to TGA PPTX to PSB PPTX to PPT PPTX to PPS PPTX to PPTX PPTX to PPSX PPTX to ODP PPTX to OTP PPTX to POTX PPTX to POT PPTX to POTM PPTX to PPTM PPTX to PPSM PPTX to FODP PPTX to HTML PPTX to HTM PPTX to MHT PPTX to MHTML PPT to DOC PPT to DOCM PPT to DOCX PPT to DOT PPT to DOTM PPT to DOTX PPT to RTF PPT to ODT PPT to OTT PPT to TXT PPT to MD PPT to PDF PPT to EPUB PPT to XPS PPT to TEX PPT to TIFF PPT to TIF PPT to JPG PPT to JPEG PPT to PNG PPT to GIF PPT to BMP PPT to ICO PPT to PSD PPT to WMF PPT to EMF PPT to DCM PPT to DICOM PPT to WEBP PPT to SVG PPT to JP2 PPT to EMZ PPT to WMZ PPT to SVGZ PPT to TGA PPT to PSB PPT to PPT PPT to PPS PPT to PPTX PPT to PPSX PPT to ODP PPT to OTP PPT to POTX PPT to POT PPT to POTM PPT to PPTM PPT to PPSM PPT to FODP PPT to HTML PPT to HTM PPT to MHT PPT to MHTML XLS to HTML XLS to HTM XLS to MHT XLS to MHTML XLS to XLS XLS to XLSX XLS to XLSM XLS to XLSB XLS to ODS XLS to XLTX XLS to XLT XLS to XLTM XLS to TSV XLS to XLAM XLS to CSV XLS to FODS XLS to DIF XLS to SXC XLS to XML XLS to JSON XLS to PDF XLS to EPUB XLS to XPS XLS to TEX XLSX to HTML XLSX to HTM XLSX to MHT XLSX to MHTML XLSX to XLS XLSX to XLSX XLSX to XLSM XLSX to XLSB XLSX to ODS XLSX to XLTX XLSX to XLT XLSX to XLTM XLSX to TSV XLSX to XLAM XLSX to CSV XLSX to FODS XLSX to DIF XLSX to SXC XLSX to XML XLSX to JSON XLSX to PDF XLSX to EPUB XLSX to XPS XLSX to TEX PDF to PPT PDF to PPS PDF to PPTX PDF to PPSX PDF to ODP PDF to OTP PDF to POTX PDF to POT PDF to POTM PDF to PPTM PDF to PPSM PDF to FODP PDF to TIFF PDF to TIF PDF to JPG PDF to JPEG PDF to PNG PDF to GIF PDF to BMP PDF to ICO PDF to PSD PDF to WMF PDF to EMF PDF to DCM PDF to DICOM PDF to WEBP PDF to SVG PDF to JP2 PDF to EMZ PDF to WMZ PDF to SVGZ PDF to TGA PDF to PSB PDF to HTML PDF to HTM PDF to MHT PDF to MHTML PDF to PDF PDF to EPUB PDF to XPS PDF to TEX PDF to DOC PDF to DOCM PDF to DOCX PDF to DOT PDF to DOTM PDF to DOTX PDF to RTF PDF to ODT PDF to OTT PDF to TXT PDF to MD Visio to EPUB Visio to XPS Visio to TEX Visio to DOC Visio to DOCM Visio to DOCX Visio to DOT Visio to DOTM Visio to DOTX Visio to RTF Visio to ODT Visio to OTT Visio to TXT Visio to MD Visio to TIFF Visio to TIF Visio to JPG Visio to JPEG Visio to PNG Visio to GIF Visio to BMP Visio to ICO Visio to PSD Visio to WMF Visio to EMF Visio to DCM Visio to DICOM Visio to WEBP Visio to SVG Visio to JP2 Visio to EMZ Visio to WMZ Visio to SVGZ Visio to TGA Visio to PSB Visio to VisioX Visio to VSX Visio to VTX Visio to VDX Visio to VSSX Visio to VSTX Visio to VisioM Visio to VSSM Visio to VSTM Visio to PPT Visio to PPS Visio to PPTX Visio to PPSX Visio to ODP Visio to OTP Visio to POTX Visio to POT Visio to POTM Visio to PPTM Visio to PPSM Visio to FODP Visio to HTML Visio to HTM Visio to MHT Visio to MHTML JPEG to PPT JPEG to PPS JPEG to PPTX JPEG to PPSX JPEG to ODP JPEG to OTP JPEG to POTX JPEG to POT JPEG to POTM JPEG to PPTM JPEG to PPSM JPEG to FODP JPEG to TIFF JPEG to TIF JPEG to JPG JPEG to JPEG JPEG to PNG JPEG to GIF JPEG to BMP JPEG to ICO JPEG to PSD JPEG to WMF JPEG to EMF JPEG to DCM JPEG to DICOM JPEG to WEBP JPEG to SVG JPEG to JP2 JPEG to EMZ JPEG to WMZ JPEG to SVGZ JPEG to TGA JPEG to PSB PNG to PPT PNG to PPS PNG to PPTX PNG to PPSX PNG to ODP PNG to OTP PNG to POTX PNG to POT PNG to POTM PNG to PPTM PNG to PPSM PNG to FODP PNG to TIFF PNG to TIF PNG to JPG PNG to JPEG PNG to PNG PNG to GIF PNG to BMP PNG to ICO PNG to PSD PNG to WMF PNG to EMF PNG to DCM PNG to DICOM PNG to WEBP PNG to SVG PNG to JP2 PNG to EMZ PNG to WMZ PNG to SVGZ PNG to TGA PNG to PSB GIF to PPT GIF to PPS GIF to PPTX GIF to PPSX GIF to ODP GIF to OTP GIF to POTX GIF to POT GIF to POTM GIF to PPTM GIF to PPSM GIF to FODP GIF to TIFF GIF to TIF GIF to JPG GIF to JPEG GIF to PNG GIF to GIF GIF to BMP GIF to ICO GIF to PSD GIF to WMF GIF to EMF GIF to DCM GIF to DICOM GIF to WEBP GIF to SVG GIF to JP2 GIF to EMZ GIF to WMZ GIF to SVGZ GIF to TGA GIF to PSB BMP to PPT BMP to PPS BMP to PPTX BMP to PPSX BMP to ODP BMP to OTP BMP to POTX BMP to POT BMP to POTM BMP to PPTM BMP to PPSM BMP to FODP BMP to TIFF BMP to TIF BMP to JPG BMP to JPEG BMP to PNG BMP to GIF BMP to BMP BMP to ICO BMP to PSD BMP to WMF BMP to EMF BMP to DCM BMP to DICOM BMP to WEBP BMP to SVG BMP to JP2 BMP to EMZ BMP to WMZ BMP to SVGZ BMP to TGA BMP to PSB