This repository is a reference implementation that shows how to use the native APEX SDK to integrate GroupDocs.Conversion Cloud with Salesforce. It uses only APEX and the GroupDocs Cloud REST API—no Salesforce UI components, Lightning Web Components, or AppExchange packages. You get a clean, code-first demo of calling the Conversion Cloud from Salesforce APEX for document conversion (PDF, Word, Excel, PowerPoint, images, and 80+ formats).
Keywords: Salesforce APEX SDK, GroupDocs Conversion Cloud, Salesforce document conversion, APEX REST API, document conversion API, file conversion Salesforce, APEX SDK demo.
- Overview
- GroupDocs Conversion Cloud APEX SDK
- APIs Demonstrated
- Prerequisites
- Getting Started
- Project Structure
- Resources
- License
GroupDocs.Conversion Cloud is an enterprise REST API for high-fidelity document conversion. This demo illustrates how to consume it from Salesforce using APEX only: configuration, HTTP callouts, and request/response handling. You can use the same patterns in your own APEX classes, triggers, or async jobs to convert documents (e.g. Word to PDF, Excel to PDF) directly from your org.
- Salesforce-native – All logic in APEX; no external UIs or managed packages required.
- Full API coverage – Storage, File, Folder, and Conversion APIs as documented by GroupDocs.
- 80+ formats – DOCX, XLSX, PPTX, PDF, HTML, images, CAD, and more.
- Cloud-only – No on-premise software; all processing in GroupDocs Cloud.
The integration is built on the GroupDocs Conversion Cloud APEX SDK pattern: APEX classes that handle authentication, HTTP requests, and the Conversion Cloud REST API. The SDK source and reusable Apex classes are available in the official APEX repository:
GroupDocs.Comparison Cloud – Apex (APEX SDK)
Use that repository for the core APEX SDK (configuration, API clients, models). This demo repository shows how to use that SDK—or equivalent APEX callout logic—specifically for GroupDocs.Conversion Cloud: upload files, manage storage and folders, and run conversions from Salesforce.
Documentation: GroupDocs.Conversion Cloud Docs
REST API Reference: GroupDocs.Conversion Cloud API Reference
The demo shows how to call these GroupDocs.Conversion Cloud APIs from Salesforce APEX:
| API | Description | Documentation |
|---|---|---|
| Storage API | Check storage existence, object existence, disc usage, and file versions. | Working with Storage API |
| File API | Upload, download, delete, copy, and move files in cloud storage. | Working with File API |
| Folder API | List folder contents, create, delete, copy, and move folders. | Working with Folder API |
| Conversion API | Convert documents to a target format (e.g. DOCX → PDF). | Working with Conversion API |
All of these are used from APEX via HTTP callouts to https://api.groupdocs.cloud. Authentication is done with Client ID and Client Secret from the GroupDocs Cloud Dashboard; configure a Remote Site for https://api.groupdocs.cloud and store credentials in Named Credentials or Custom Settings.
- A Salesforce org (Developer, Sandbox, or Production) with APEX and HTTP callouts enabled.
- GroupDocs.Conversion Cloud credentials: get Client ID and Client Secret from GroupDocs Cloud Dashboard. A temporary license is available for evaluation.
- Remote Site Setting in Salesforce: add
https://api.groupdocs.cloudso APEX can call the GroupDocs API. - (Optional) SFDX or your preferred tooling to deploy the project.
-
Clone the repository
git clone https://github.com/groupdocs-comparison-cloud/salesforce-conversion-apex-sdk-demo-application.git cd salesforce-conversion-apex-sdk-demo-application -
Deploy to your Salesforce org
Deploy the APEX classes and metadata (e.g.sf project deploy startor your CI/CD pipeline). Ensure the Remote Site forhttps://api.groupdocs.cloudis deployed. -
Configure credentials
Store your GroupDocs Cloud Client ID and Client Secret in Named Credentials or Custom Settings, and reference them in the APEX configuration class used by the demo. -
Run the demo
Use the included APEX classes to upload a file, run a conversion (e.g. DOCX → PDF), and inspect the result. You can run the logic from the Developer Console (Execute Anonymous) or from your own APEX code. -
Extend for your use case
Use the same APEX patterns to call the Storage, File, Folder, and Conversion APIs in your flows, triggers, or scheduled jobs.
force-app/main/default/
├── classes/ # APEX: configuration, HTTP handler, Conversion/Storage/File/Folder usage
├── objects/ # Custom object (optional) for storing GroupDocs credentials
├── remoteSiteSettings/
config/ # Scratch org / project config
The APEX classes contain the core logic: authentication, request building, and calls to the GroupDocs.Conversion Cloud Storage, File, Folder, and Conversion APIs. No Salesforce UI components are required to use the SDK.
| Resource | Link |
|---|---|
| GroupDocs.Conversion Cloud | Product page |
| Conversion Cloud documentation | Docs |
| Conversion REST API reference | API Reference |
| APEX SDK (source) | groupdocs-comparison-cloud-apex |
| Storage API | Working with Storage API |
| File API | Working with File API |
| Folder API | Working with Folder API |
| Conversion API | Working with Conversion API |
| GroupDocs Cloud Dashboard | Applications / credentials |
| Free trial | Temporary license |
| Support | GroupDocs Cloud Forum – Conversion |
See LICENSE in this repository.
salesforce apex apex-sdk salesforce-apex groupdocs-conversion-cloud document-conversion conversion-api storage-api file-api folder-api rest-api salesforce-integration document-converter pdf-conversion file-conversion