Skip to content

Commit

Permalink
Merge pull request #27 from DKhalil/patch-1
Browse files Browse the repository at this point in the history
Add inline file output
  • Loading branch information
horstoeko authored Jan 22, 2024
2 parents f51faac + aa6db69 commit f678186
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/ZugferdDocumentPdfBuilderAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f678186

Please sign in to comment.