diff --git a/src/ZugferdDocumentPdfBuilderAbstract.php b/src/ZugferdDocumentPdfBuilderAbstract.php index a40be557..b4a1d3ef 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