123456789101112131415161718192021222324252627282930313233 |
- <?php
- declare(strict_types=1);
- namespace OCA\Settings\Controller;
- use OCP\AppFramework\Controller;
- use OCP\AppFramework\Http\Attribute\NoAdminRequired;
- use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
- use OCP\AppFramework\Http\Attribute\OpenAPI;
- 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;
- }
- }
|