Ürünlerimize göz atın

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

Kurulum

Paket Packagist’te mevcut‘dir ve aşağıdaki komut çalıştırılarak Composer aracılığıyla kurulabilir:

composer require groupdocscloud/groupdocs-parser-cloud

Packagist Version Packagist Downloads PHP-GroupDocsCloud


Gereksinimler

  • PHP 8.1 veya üzeri
  • Composer
  • PHP uzantıları — curl, json, mbstring
  • GroupDocs Cloud kimlik bilgileri — Client ID and Client Secret Kontrol Panelinden

Bağımlılıklar

SDK aşağıdaki paketleri gerektirir:

PackageConstraint
guzzlehttp/guzzle^6.5.8 or ^7.4.5
ext-curl*
ext-json*
ext-mbstring*

Hızlı Başlangıç

API kimlik bilgilerinizi alın

GroupDocs.Parser Cloud’u kullanmak için, GroupDocs.Cloud Dashboard adresinden kaydolun ve Müşteri Kimliğinizi ve Müşteri Sırrınızı alın.

API’yi başlat

PHP için GroupDocs.Parser Cloud SDK’yı kullanmaya başlamak için aşağıdaki kodu kullanın:

<?php

require_once(__DIR__ . '/vendor/autoload.php');

// Get your ClientId and ClientSecret at https://dashboard.groupdocs.cloud
$configuration = new GroupDocs\Parser\Configuration();
$configuration->setAppSid("YourClientId");
$configuration->setAppKey("YourClientSecret");
$configuration->setApiBaseUrl("https://api.groupdocs.cloud");

$parseApi = new GroupDocs\Parser\ParseApi($configuration);

Tam örneği Utils.php dosyasında görün.

Bir belgeden metin çıkarın

Başlatıldıktan sonra, bulut depolama alanındaki bir belgeden metin çıkarmak için bu temel örneği kullanın.

<?php

require_once(__DIR__ . '/vendor/autoload.php');

use GroupDocs\Parser\Model;
use GroupDocs\Parser\Model\Requests;

$configuration = new GroupDocs\Parser\Configuration();
$configuration->setAppSid("YourClientId");
$configuration->setAppKey("YourClientSecret");
$configuration->setApiBaseUrl("https://api.groupdocs.cloud");

$parseApi = new GroupDocs\Parser\ParseApi($configuration);

$options = new Model\TextOptions();

$fileInfo = new Model\FileInfo();
$fileInfo->setFilePath("email/eml/embedded-image-and-attachment.eml");
$options->setFileInfo($fileInfo);

$request = new Requests\textRequest($options);
$result = $parseApi->text($request);

echo "Text: " . $result->getText() . "\n";

Tam örneği ExtractTextFromTheWholeDocument.php dosyasında görün.

Desteklenen Dosya Formatlarını Alın

Desteklenen dosya formatlarını alın.

<?php

require_once(__DIR__ . '/vendor/autoload.php');

$configuration = new GroupDocs\Parser\Configuration();
$configuration->setAppSid("YourClientId");
$configuration->setAppKey("YourClientSecret");
$configuration->setApiBaseUrl("https://api.groupdocs.cloud");

$infoApi = new GroupDocs\Parser\InfoApi($configuration);

$result = $infoApi->getSupportedFileFormats();

foreach ($result->getFormats() as $format) {
    echo $format->getExtension() . ": " . $format->getFileFormat() . "\n";
}

Tam örneği GetSupportedFileTypes.php dosyasında görün.

Belgeyi Şablona Göre Ayrıştırın

Bu örnek, bulut depolama alanında saklanan bir şablonla bir belgeyi ayrıştırır ve metin alanlarını ve tablo hücrelerini okur.

<?php

require_once(__DIR__ . '/vendor/autoload.php');

use GroupDocs\Parser\Model;
use GroupDocs\Parser\Model\Requests;

$configuration = new GroupDocs\Parser\Configuration();
$configuration->setAppSid("YourClientId");
$configuration->setAppKey("YourClientSecret");
$configuration->setApiBaseUrl("https://api.groupdocs.cloud");

$parseApi = new GroupDocs\Parser\ParseApi($configuration);

$options = new Model\ParseOptions();

$fileInfo = new Model\FileInfo();
$fileInfo->setFilePath("words-processing/docx/companies.docx");
$options->setFileInfo($fileInfo);
$options->setTemplatePath("templates/companies.json");

$request = new Requests\parseRequest($options);
$result = $parseApi->parse($request);

foreach ($result->getFieldsData() as $data) {
    if ($data->getPageArea()->getPageTextArea() != null) {
        echo "Field name: " . $data->getName() . ". Text: " . $data->getPageArea()->getPageTextArea()->getText() . "\n";
    }

    if ($data->getPageArea()->getPageTableArea() != null) {
        echo "Table name: " . $data->getName() . "\n";
        foreach ($data->getPageArea()->getPageTableArea()->getPageTableAreaCells() as $cell) {
            echo "Row " . $cell->getRowIndex() . " column " . $cell->getColumnIndex() . ": " . $cell->getPageArea()->getPageTextArea()->getText() . "\n";
        }
    }
}

Tam örneği ParseByTemplateStoredInUserStorage.php dosyasında görün.

Bir Belgeden Görüntüleri Çıkarın

Bu örnek, bir sunumdan gömülü görüntüleri çıkarır ve her depolama yolunu ve indirme URL’sini yazdırır.

<?php

require_once(__DIR__ . '/vendor/autoload.php');

use GroupDocs\Parser\Model;
use GroupDocs\Parser\Model\Requests;

$configuration = new GroupDocs\Parser\Configuration();
$configuration->setAppSid("YourClientId");
$configuration->setAppKey("YourClientSecret");
$configuration->setApiBaseUrl("https://api.groupdocs.cloud");

$parseApi = new GroupDocs\Parser\ParseApi($configuration);

$options = new Model\ImagesOptions();

$fileInfo = new Model\FileInfo();
$fileInfo->setFilePath("slides/three-slides.pptx");
$options->setFileInfo($fileInfo);

$request = new Requests\imagesRequest($options);
$result = $parseApi->images($request);

foreach ($result->getImages() as $image) {
    echo "Image path: " . $image->getPath() . ". Download url: " . $image->getDownloadUrl() . "\n";
    echo "Format: " . $image->getFileFormat() . ". Page index: " . $image->getPageIndex() . "\n";
}

Tam örneği ExtractImagesFromTheWholeDocument.php dosyasında görün.

GitHub’daki Örnekler

GroupDocs.Parser Cloud PHP Examples deposu aşağıdakileri kapsayan çalıştırılmaya hazır örnekler içerir:

CategoryExamples
BilgiDesteklenen dosya formatları, belge bilgileri, kapsayıcı öğeleri
Metin ÇıkarmaTüm belge, biçimlendirilmiş metin, sayfa numarası aralığı, kapsayıcı içindeki belge
Görüntü ÇıkarmaTüm belge, sayfa numarası aralığı, kapsayıcı içindeki belge
Şablona Göre AyrıştırmaKullanıcı depolama alanında saklanan şablon, nesne olarak tanımlanan şablon, kapsayıcı içindeki belge
Yapay Zeka ile AyrıştırmaBir belgeyi şablonla yapay zeka kullanarak ayrıştırın
ŞablonlarŞablon oluşturun veya güncelleyin, alın ve silin

Örnekler nasıl çalıştırılır

  1. örnek deposunu kopyalayın veya indirin
  2. Examples/Utils.php‘i düzenleyin ve AppSid ile AppKey ayarlarınızı yapın
  3. Examples dizinine gidin
  4. composer update‘i çalıştırın
  5. php RunExamples.php komutunu çalıştırın

Daha fazla ayrıntı için Getting Started adresini ziyaret edin.


Product Docs Swagger Examples Blog Support Dashboard


Tags

Document Data Extraction | PHP Cloud API | GroupDocs.Parser Cloud | REST API | Text Extraction | Image Extraction | Template Parsing | Data Parsing | Document Information | Container Files | Cloud Storage Integration | File Operations | Folder Operations | Secure API Access | Document Parsing | Metadata Extraction | PDF Parsing | ZIP Files | PST/OST Files | Cross-platform API | Document Processing | Data Extraction API



 Türkçe