Dosya Dönüştürme API'si
Uygulamanızdaki dosyaları dönüştürmek için basit bir API: 200'den fazla biçim, harika belgeler, destek ekibi
Fiyatlandırma
Kişisel API Anahtarınız
API Anahtarı almak için ücretsiz kaydolun
Employees of these companies use our service
SDKs
API v2 için resmi PHP ve TypeScript mevcuttur.
<?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