Direct generated PDF-file to public file system via custom module.

Created on 12 November 2024, 14 days ago

Problem/Motivation

In drupal 7 there was the option to direct the generated PDF into file on the server by:
$view->display->handler->execute($path, 'F');
In Drupal 10 I've tried
$view->display_handler->setOption('path', $pdf_path, 'F');
before
$view->preExecute();
$view->execute();
$view->buildRenderable($display_id);
but the file doesn't get generated.

Any hint how to get the pdf-file into the public filesystem would be welcomed.

💬 Support request
Status

Active

Version

3.0

Component

Code

Created by

🇩🇪Germany wla_g

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024