Files
api/services/nginx/app/interfaces/minio_pdfs_i.php
T
Jepp9350 45328a6b72 Add PDF generation module with HTML2PDF integration.
This commit introduces a new PDF generation module leveraging the HTML2PDF library. The module generates PDFs from HTML templates, supports customization through styles and templates, and integrates with Minio for storage and retrieval. A test route is added for generating and serving PDFs dynamically.
2025-03-14 14:56:55 +01:00

28 lines
681 B
PHP

<?php
namespace interfaces;
interface minio_pdfs_i
{
/**
* Check if a PDF file exists in the Minio bucket
* @param int $pdf_id
* @return bool
*/
public function pdf_exists(int $pdf_id): bool;
/**
* Upload a PDF file to the Minio bucket
* @param string $pdf_id (e.g. 123)
* @param string $file_path (e.g. /tmp/test.pdf)
* @return string
*/
public function upload(string $pdf_id, string $file_path): string;
/**
* Get the pdf key name for a given pdf id (E.g. pdf_123.pdf)
* @param string $id (e.g. 67d4043850e78 )
* @return string
*/
public function get_pdf_key_name(string $id): string;
}