Explore nuestros productos

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

Instalación

El paquete está disponible en nuget.org y se puede instalar desde la consola del Administrador de paquetes con el siguiente comando:

NuGet\Install-Package GroupDocs.Metadata-Cloud

Version NuGet NuGet-GroupDocsCloud


Requisitos

  • .NET Framework 2.0 o .NET Standard 2.0
  • NuGet
  • System.Web al dirigirse a .NET Framework 2.0
  • Credenciales de GroupDocs Cloud — Client ID and Client Secret del panel

Inicio rápido

Obtener las credenciales de API

Para usar GroupDocs.Metadata Cloud, regístrese en el panel de GroupDocs.Cloud y obtenga el Client ID y el Client Secret.

Inicializar la API

Use el código siguiente para empezar a usar GroupDocs.Metadata Cloud SDK for .NET.

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

var configuration = new Configuration("YourClientId", "YourClientSecret");
var apiInstance = new MetadataApi(configuration);

Vea el ejemplo completo en Common.cs.

Extraer metadatos por etiqueta

Este ejemplo lee las propiedades etiquetadas como Created en la categoría Time.

using GroupDocs.Metadata.Cloud.Sdk.Api;
using GroupDocs.Metadata.Cloud.Sdk.Client;
using GroupDocs.Metadata.Cloud.Sdk.Model;
using GroupDocs.Metadata.Cloud.Sdk.Model.Requests;

var configuration = new Configuration("YourClientId", "YourClientSecret");
var apiInstance = new MetadataApi(configuration);

var options = new ExtractOptions
{
    FileInfo = new FileInfo { FilePath = "documents/input.docx" },
    SearchCriteria = new SearchCriteria
    {
        TagOptions = new TagOptions
        {
            ExactTag = new Tag { Name = "Created", Category = "Time" }
        }
    }
};

var response = apiInstance.Extract(new ExtractRequest(options));

foreach (var property in response.Properties)
{
    Console.WriteLine($"Property: {property.Name}. Value: {property.Value}");
}

Vea el ejemplo completo en ExtractMetadataByTag.cs.

Agregar metadatos por etiqueta

Este ejemplo agrega una propiedad Manager en la categoría Person.

using System.Collections.Generic;
using GroupDocs.Metadata.Cloud.Sdk.Api;
using GroupDocs.Metadata.Cloud.Sdk.Client;
using GroupDocs.Metadata.Cloud.Sdk.Model;
using GroupDocs.Metadata.Cloud.Sdk.Model.Requests;

var configuration = new Configuration("YourClientId", "YourClientSecret");
var apiInstance = new MetadataApi(configuration);

var options = new AddOptions
{
    FileInfo = new FileInfo { FilePath = "documents/input.docx" },
    Properties = new List<AddProperty>
    {
        new AddProperty
        {
            SearchCriteria = new SearchCriteriaWithoutValue
            {
                TagOptions = new TagOptions
                {
                    ExactTag = new Tag { Name = "Manager", Category = "Person" }
                }
            },
            Value = "Test User",
            Type = "String"
        }
    }
};

var response = apiInstance.Add(new AddRequest(options));
Console.WriteLine("Resultant file path: " + response.Path);

Vea el ejemplo completo en AddMetadataByTag.cs.

Quitar metadatos por etiqueta

Este ejemplo quita las propiedades etiquetadas como Created en la categoría Time.

using GroupDocs.Metadata.Cloud.Sdk.Api;
using GroupDocs.Metadata.Cloud.Sdk.Client;
using GroupDocs.Metadata.Cloud.Sdk.Model;
using GroupDocs.Metadata.Cloud.Sdk.Model.Requests;

var configuration = new Configuration("YourClientId", "YourClientSecret");
var apiInstance = new MetadataApi(configuration);

var options = new RemoveOptions
{
    FileInfo = new FileInfo { FilePath = "documents/input.docx" },
    SearchCriteria = new SearchCriteria
    {
        TagOptions = new TagOptions
        {
            ExactTag = new Tag { Name = "Created", Category = "Time" }
        }
    }
};

var response = apiInstance.Remove(new RemoveRequest(options));
Console.WriteLine("Resultant file path: " + response.Path);

Vea el ejemplo completo en RemoveMetadataByTag.cs.

Obtener los tipos de archivo admitidos

Recupere los formatos que acepta la API de metadata.

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

var configuration = new Configuration("YourClientId", "YourClientSecret");
var apiInstance = new InfoApi(configuration);

var response = apiInstance.GetSupportedFileFormats();

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

Vea el ejemplo completo en GetSupportedFileTypes.cs.

Ejemplos en GitHub

El repositorio GroupDocs.Metadata Cloud .NET Examples incluye ejemplos listos para ejecutar sobre:

CategoryExamples
ExtraerPor etiqueta, nombre de propiedad, frase, regex, valor o el árbol completo
AgregarPor etiqueta o nombre de propiedad
EstablecerPor etiqueta, nombre de propiedad, frase, regex o valor
QuitarPor etiqueta, nombre de propiedad, frase, regex o valor
InfoInformación del documento, etiquetas de metadatos, tipos de archivo admitidos

Cómo ejecutar los ejemplos

  1. Clone o descargue el repositorio de ejemplos
  2. Abra Examples/GroupDocs.Metadata.Cloud.Examples.sln en Visual Studio 2017 o posterior
  3. Haga clic con el botón derecho en la solución y seleccione Enable NuGet Package Restore
  4. Edite Examples/GroupDocs.Metadata.Cloud.Examples.CSharp/RunExamples.cs y establezca Common.MyAppSid y Common.MyAppKey
  5. Compile y ejecute

Para obtener más detalles, visite Getting Started.


Product Docs Swagger Examples Blog Support Dashboard


Etiquetas

Document Metadata API | .NET Cloud API | GroupDocs.Metadata Cloud | REST API | Metadata Extraction | Metadata Management | Metadata Filtering | Metadata Searching | Metadata Preservation | Cloud Storage Integration | File Upload | File Download | File Management | Folder Management | File Versioning | Storage Administration | SDKs | Cross-Platform Support | API Explorer | Swagger UI | cURL Examples | JSON Web Token | Secure API Access | Client ID and Secret | High Accuracy | Fast Processing | Scalability | Docker Support | Self-Hosting API | Automatic Scaling | Microsoft Word | PDF | Excel | PowerPoint | Email Formats | Autodesk Design Data | Image Formats | Archive Formats | DICOM | GitHub Repository | MIT License | Open Source SDK | Free Trial | Technical Support | Document Metadata Extraction | Metadata Editing | Data Encryption | Metadata API | ASP.NET Metadata API | Metadata Integrity | Cross-Platform API


 Español