From aa6db69a22ff60f6cb0675e8e5198175e3fce110 Mon Sep 17 00:00:00 2001 From: Daniel Khalil Date: Mon, 22 Jan 2024 10:47:46 +0100 Subject: [PATCH] Add inline file output --- src/ZugferdDocumentPdfBuilderAbstract.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ZugferdDocumentPdfBuilderAbstract.php b/src/ZugferdDocumentPdfBuilderAbstract.php index a40be55..b4a1d3e 100644 --- a/src/ZugferdDocumentPdfBuilderAbstract.php +++ b/src/ZugferdDocumentPdfBuilderAbstract.php @@ -83,6 +83,17 @@ public function saveDocument(string $toFilename) return $this; } + + /** + * Returns the PDF as an inline file + * + * @param string $toFilename + * @return string + */ + public function saveDocumentInline(string $toFilename): string + { + return $this->pdfWriter->Output($toFilename, 'I'); + } /** * Returns the PDF as a string