```php title="PHP" setChunking(new ChunkingConfig()); $result = Kreuzberg::extractFileSync('document.pdf', null, $config); echo "Total content length: " . strlen($result->getContent()) . "\n"; if ($result->getChunks() !== null) { foreach ($result->getChunks() as $chunk) { echo "Chunk: " . $chunk->getContent() . "\n"; } } foreach ($result->getTables() as $table) { echo "Table with " . count($table->getRows()) . " rows\n"; } ```