Skip to content

Commit

Permalink
#14 Final ZugferdDocumentPdfMerger
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Aug 16, 2023
1 parent 779357c commit 75e7ff6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 11 additions & 0 deletions src/ZugferdDocumentAbstractPdfBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,17 @@ public function saveDocument(string $toFilename): ZugferdDocumentAbstractPdfBuil
return $this;
}

/**
* Returns the PDF as a string
*
* @param string $toFilename
* @return string
*/
public function downloadString(string $toFilename): string
{
return $this->pdfWriter->Output($toFilename, 'S');
}

/**
* Get the content of XML to attach
*
Expand Down
11 changes: 0 additions & 11 deletions src/ZugferdDocumentPdfBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,6 @@ protected function getXmlContent(): string
{
return $this->documentBuiler->getContentAsDomDocument()->saveXML();
}

/**
* Returns the PDF as a string
*
* @param string $toFilename
* @return string
*/
public function downloadString(string $toFilename): string
{
return $this->pdfWriter->Output($toFilename, 'S');
}

/**
* @inheritDoc
Expand Down

0 comments on commit 75e7ff6

Please sign in to comment.