Blader door onze producten

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.


Product Docs Swagger Examples Blog Support Dashboard

Installation

Das Paket ist verfügbar auf nuget.org und kann über die Paketmanager-Konsole mit folgendem Befehl installiert werden:

PM> NuGet\Install-Package GroupDocs.Conversion-Cloud

Version NuGet NuGet-GroupDocsCloud


Schnellstart

API-Anmeldeinformationen abrufen

Um GroupDocs.Conversion Cloud zu verwenden, registrieren Sie sich im GroupDocs.Cloud Dashboard und holen Sie sich Ihre Client ID und Client Secret.

API initialisieren

Verwenden Sie den folgenden Code, um mit dem GroupDocs.Conversion Cloud SDK für .NET zu beginnen:

// Initialize the API instance
var configuration = new Configuration
{
    ClientId = "YourClientId",
    ClientSecret = "YourClientSecret"
};
var conversionApi = new ConversionApi(configuration);

Dokument konvertieren

Nach der Initialisierung können Sie mit diesem einfachen Beispiel ein Dokument konvertieren:

// Set up conversion settings
var convertSettings = new ConvertSettings
{
    FilePath = "input.docx",
    Format = "pdf"
};

// Convert the document
var response = conversionApi.ConvertDocument(convertSettings);

// Save the converted file
File.WriteAllBytes("output.pdf", response.File);

Mit dieser Schnellstartanleitung sind Sie bereit, Dokumente mit GroupDocs.Conversion Cloud in Ihren .NET-Anwendungen zu konvertieren. Weitere Details finden Sie in der Dokumentation.

Dokumente zwischen verschiedenen Formaten konvertieren Cloud API

Mit diesem Code können Entwickler Dokumente programmgesteuert zwischen verschiedenen Formaten konvertieren und manuelle Konvertierungen vermeiden. Es unterstützt über 50 Dateiformate und eignet sich ideal für Anwendungsentwickler, die Multi-Format-Unterstützung benötigen.

// Initialize the API instance
var conversionApi = new ConversionApi(new Configuration { ClientId = "YourClientId", ClientSecret = "YourClientSecret" });

// Set up the conversion settings: source format, target format, etc.
var convertSettings = new ConvertSettings
{
    // Specify input file path and desired output format
    FilePath = "input.docx",
    Format = "pdf"  // Convert DOCX to PDF
    
    // Optional: specify page range, font substitution, etc.
};

// Execute the conversion and retrieve the converted file
var response = conversionApi.ConvertDocument(convertSettings);

// Save the converted document to the specified location
File.WriteAllBytes("output.pdf", response.File);

Bestimmte Seiten eines Dokuments konvertieren Cloud API

Dieses Beispiel zeigt, wie Entwickler nur bestimmte Seiten konvertieren können, wodurch Verarbeitungszeit gespart und Dateigrößen reduziert werden, wenn nur ein Teil des Dokuments benötigt wird.

// Initialize the API instance with authentication credentials
var conversionApi = new ConversionApi(new Configuration { ClientId = "YourClientId", ClientSecret = "YourClientSecret" });

// Configure the settings to convert specific pages (e.g., pages 1 to 3)
var convertSettings = new ConvertSettings
{
    FilePath = "input.pptx",
    Format = "pdf",  // Convert PPTX to PDF
    
    // Specify the pages to convert (e.g., first 3 pages)
    Pages = new List<int> { 1, 2, 3 }
};

// Execute the conversion
var response = conversionApi.ConvertDocument(convertSettings);

// Save the resulting file
File.WriteAllBytes("output_pages1-3.pdf", response.File);

Dokumentformate automatisch erkennen für die Konvertierung

Dieses Snippet zeigt die Möglichkeit, Dokumente auch dann zu konvertieren, wenn die Dateierweiterung unbekannt ist — besonders nützlich bei vom Benutzer hochgeladenen Dateien, deren Format nicht eindeutig ist.

// Initialize the Conversion API with credentials
var conversionApi = new ConversionApi(new Configuration { ClientId = "YourClientId", ClientSecret = "YourClientSecret" });

// Configure settings for auto-detecting format without file extension
var convertSettings = new ConvertSettings
{
    FilePath = "input_file",  // No file extension required
    Format = "pdf"  // Desired output format (e.g., PDF)
};

// Execute the conversion
var response = conversionApi.ConvertDocument(convertSettings);

// Save the converted file to the output path
File.WriteAllBytes("output.pdf", response.File);

Product Docs Swagger Examples Blog Support Dashboard


Tags

Document Conversion API | .NET Cloud API | GroupDocs.Conversion Cloud | REST API | Document Conversion | Auto-detect Formats | Watermarking API | Multi-Format Output | Batch Document Conversion | PDF Conversion | Custom Conversion Options | Page-by-Page Conversion | Font Replacement | OCR Support | Metadata Extraction | Document Merge | Storage API | Document Information API | Document Load Options | Multi-Language Support | Cloud Storage Integration | SDKs for .NET, Java, Python | Secure API Access | Docker Support | Scalable Document Conversion | API Rate Limiting



 Deutsch