12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?php
- declare(strict_types=1);
- namespace OCA\Settings\Controller;
- use OCP\AppFramework\Controller;
- use OCP\AppFramework\Http\Attribute\IgnoreOpenAPI;
- use OCP\AppFramework\Http\DataDisplayResponse;
- class ReasonsController extends Controller {
-
- public function getPdf() {
- $data = file_get_contents(__DIR__ . '/../../data/Reasons to use Nextcloud.pdf');
- $resp = new DataDisplayResponse($data);
- $resp->addHeader('Content-Type', 'application/pdf');
- return $resp;
- }
- }
|