/  파일 변환 API

파일 변환 API

응용 프로그램에서 파일을 변환하는 하나의 간단한 API: 200개 이상의 형식, 훌륭한 문서, 지원 팀

개인 API 키
무료로 등록하여 API 키를 받으세요

가격

Prepaid packages
1000
전환 분
$10
1.00 분당 센트
Employees of these companies use our service
Logo
Logo
Logo
Logo
Logo
Logo
Logo
Logo
Logo
Logo
Logo
Logo

SDKs

API v2의 경우 공식 PHP 및 Typescript를 사용할 수 있습니다.

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


$apiKey = 'myApiKey';

$client = new Webpractik\OcfConverter\Sdk\OcfClient($apiKey);

$filePath = '/path/to/file/to/convert.png';
$extensionToConvertTo = 'pdf';

try {
    $task = $client->uploadFile($filePath, $extensionToConvertTo);

    $result = $task->waitForConversion();

    if ($result->isSuccess()) {
        $resultUrl = $result->getResultingFileUrl();

        $resultFileName = basename($resultUrl);

        if (file_put_contents($resultFileName, file_get_contents($resultUrl))) {
            $result->deleteFile();
        }
    }
} catch (Exception $e) {
    echo 'Exception: ', $e->getMessage(), PHP_EOL;
}

What our customers say