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 dem folgenden Befehl installiert werden:

NuGet\Install-Package GroupDocs.Merger-Cloud

Version NuGet NuGet-GroupDocsCloud


Anforderungen

  • .NET Framework 2.0 oder .NET Standard 2.0
  • NuGet
  • System.Web bei Zielplattform .NET Framework 2.0
  • GroupDocs Cloud-Anmeldeinformationen — Client ID and Client Secret aus dem Dashboard

Schnellstart

API-Anmeldeinformationen abrufen

Um GroupDocs.Merger Cloud zu verwenden, registrieren Sie sich im GroupDocs.Cloud-Dashboard und rufen Sie Client ID und Client Secret ab.

API initialisieren

Verwenden Sie den folgenden Code, um das GroupDocs.Merger Cloud SDK for .NET zu verwenden.

using GroupDocs.Merger.Cloud.Sdk.Api;
using GroupDocs.Merger.Cloud.Sdk.Client;

string MyClientId = "YourClientId";
string MyClientSecret = "YourClientSecret";

var config = new Configuration(MyClientId, MyClientSecret);
config.ApiBaseUrl = "https://api.groupdocs.cloud";

var apiInstance = new DocumentApi(config);

Das vollständige Beispiel finden Sie in Common.cs.

Dokumente zusammenfügen

Dieses Beispiel fügt zwei Word-Dokumente zu einer Datei zusammen.

using System.Collections.Generic;
using GroupDocs.Merger.Cloud.Sdk.Api;
using GroupDocs.Merger.Cloud.Sdk.Client;
using GroupDocs.Merger.Cloud.Sdk.Model;
using GroupDocs.Merger.Cloud.Sdk.Model.Requests;
using FileInfo = GroupDocs.Merger.Cloud.Sdk.Model.FileInfo;

var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new DocumentApi(config);

var options = new JoinOptions
{
    JoinItems = new List<JoinItem>
    {
        new JoinItem { FileInfo = new FileInfo { FilePath = "WordProcessing/four-pages.docx" } },
        new JoinItem { FileInfo = new FileInfo { FilePath = "WordProcessing/one-page.docx" } }
    },
    OutputPath = "Output/joined.docx"
};

var response = apiInstance.Join(new JoinRequest(options));
Console.WriteLine("Output file path: " + response.Path);

Das vollständige Beispiel finden Sie in JoinMultipleDocuments.cs.

Dokument teilen

Dieses Beispiel teilt die Seiten 3, 6 und 8 in eigene Dokumente.

using System.Collections.Generic;
using GroupDocs.Merger.Cloud.Sdk.Api;
using GroupDocs.Merger.Cloud.Sdk.Client;
using GroupDocs.Merger.Cloud.Sdk.Model;
using GroupDocs.Merger.Cloud.Sdk.Model.Requests;
using FileInfo = GroupDocs.Merger.Cloud.Sdk.Model.FileInfo;

var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new DocumentApi(config);

var options = new SplitOptions
{
    FileInfo = new FileInfo { FilePath = "WordProcessing/sample-10-pages.docx" },
    OutputPath = "Output/split-document",
    Pages = new List<int?> { 3, 6, 8 },
    Mode = SplitOptions.ModeEnum.Pages
};

var response = apiInstance.Split(new SplitRequest(options));

foreach (var document in response.Documents)
{
    Console.WriteLine("Output file path: " + document.Path);
}

Das vollständige Beispiel finden Sie in SplitToSinglePages.cs.

Seiten drehen

Dieses Beispiel dreht die Seiten 2 und 4 um 90 Grad.

using System.Collections.Generic;
using GroupDocs.Merger.Cloud.Sdk.Api;
using GroupDocs.Merger.Cloud.Sdk.Client;
using GroupDocs.Merger.Cloud.Sdk.Model;
using GroupDocs.Merger.Cloud.Sdk.Model.Requests;
using FileInfo = GroupDocs.Merger.Cloud.Sdk.Model.FileInfo;

var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new PagesApi(config);

var options = new RotateOptions
{
    FileInfo = new FileInfo { FilePath = "Pdf/ten-pages.pdf" },
    OutputPath = "Output/rotate-pages.pdf",
    Pages = new List<int?> { 2, 4 },
    Mode = RotateOptions.ModeEnum.Rotate90
};

var response = apiInstance.Rotate(new RotateRequest(options));
Console.WriteLine("Output file path: " + response.Path);

Das vollständige Beispiel finden Sie in RotatePages.cs.

Unterstützte Dateitypen abrufen

Rufen Sie die Formate ab, die die merger-API akzeptiert.

using GroupDocs.Merger.Cloud.Sdk.Api;
using GroupDocs.Merger.Cloud.Sdk.Client;

var config = new Configuration("YourClientId", "YourClientSecret");
config.ApiBaseUrl = "https://api.groupdocs.cloud";
var apiInstance = new InfoApi(config);

var response = apiInstance.GetSupportedFileFormats();

foreach (var entry in response.Formats)
{
    Console.WriteLine($"{entry.FileFormat}: {string.Join(",", entry.Extension)}");
}

Das vollständige Beispiel finden Sie in GetSupportedFileTypes.cs.

Beispiele auf GitHub

Das Repository GroupDocs.Merger Cloud .NET Examples enthält sofort ausführbare Beispiele zu folgenden Themen:

CategoryExamples
ZusammenfügenMehrere Dokumente, Bilder, formatübergreifend, ausgewählte Seiten
TeilenEinzelne Seiten, Seitenbereiche
SeitenDrehen, verschieben, tauschen, entfernen, extrahieren, Ausrichtung ändern
SicherheitDokumentkennwort hinzufügen, prüfen, aktualisieren und entfernen
InfoDokumentinformationen, unterstützte Dateitypen

Beispiele ausführen

  1. Klonen oder laden Sie das Beispiel-Repository herunter
  2. Öffnen Sie Examples/GroupDocs.Merger.Cloud.Examples.CSharp.sln in Visual Studio 2017 oder höher
  3. Klicken Sie mit der rechten Maustaste auf die Projektmappe und wählen Sie Enable NuGet Package Restore
  4. Bearbeiten Sie Examples/GroupDocs.Merger.Cloud.Examples.CSharp/RunExamples.cs und legen Sie Common.ClientId und Common.ClientSecret fest
  5. Erstellen und ausführen

Weitere Informationen finden Sie unter Getting Started.


Product Docs Swagger Examples Blog Support Dashboard


Schlagwörter

Document Merging API | .NET Cloud API | GroupDocs.Merger Cloud | REST API | Page Manipulation | Document Security | Password Protection | Cloud Storage Integration | File Operations | Folder Operations | Document Splitting | PDF Merging | Cross-format Merging | Word Document Merging | Excel File Merging | Presentation Merging | Document Reorganization | API Explorer | Comprehensive Documentation | Multi-Platform Support | Secure API Access | GitHub Repository | Data Encryption | Client ID and Secret | Scalable Infrastructure | Fast Processing | Document Joining | Content Management | Customizable Document Processing | Document Manipulation API | Real-time API Integration | Merge Multiple Formats | Portable Document Format | OpenDocument Formats | Cross-platform API


 Deutsch