Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
$viewer->onBeginExportReport = function (StiExportEventArgs $args) {
$args->fileName = "MyExportedFileName.$args->fileExtension";
if ($args->format == StiExportFormat::Pdf) {
/** @var StiPdfExportSettings $settings */
$settings = $args->settings;
$settings->creatorString = 'My Company Name';
$settings->embeddedFonts = false;
}
};
$viewer->process();onBeginExportReport — fires on the server when an export starts, before the file is produced.$args->fileName — overrides the name of the exported file.$args->format — identifies the export format so you can branch on it (here Pdf).$settings->creatorString / embeddedFonts — format-specific export options applied to the PDF.