<?php
require __DIR__.'/vendor/autoload.php';
$app = require __DIR__.'/bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();

use App\Http\Controllers\ExamPdfController;
use Illuminate\Http\Request;

$controller = new ExamPdfController();
$response = $controller->show(new Request(), 'demo_stu_1762395159_4_20251122161024');

if (method_exists($response, 'render')) {
    $html = $response->render();
    echo "\n" . substr($html, 0, 500) . "...\n";
} else {
    echo "Response is not a view.\n";
}
?>
