Skip to content

Class ZugferdDocumentPdfBuilder

HorstOeko edited this page Dec 15, 2024 · 20 revisions

Summary

Class representing the facillity adding XML data from ZugferdDocumentBuilder
to an existing PDF with conversion to PDF/A

Methods

fromPdfFile [static]

Summary

No summary available.

Signature

public static function fromPdfFile(
  horstoeko\zugferd\ZugferdDocumentBuilder $documentBuilder,
  string $pdfFileName,
): void
{
}

Parameters

Name Type Allows Null Description
documentBuilder horstoeko\zugferd\ZugferdDocumentBuilder
pdfFileName string

fromPdfString [static]

Summary

No summary available.

Signature

public static function fromPdfString(
  horstoeko\zugferd\ZugferdDocumentBuilder $documentBuilder,
  string $pdfContent,
): void
{
}

Parameters

Name Type Allows Null Description
documentBuilder horstoeko\zugferd\ZugferdDocumentBuilder
pdfContent string

__construct

Summary

Constructor

Signature

public function __construct(horstoeko\zugferd\ZugferdDocumentBuilder $documentBuilder, string $pdfData): void
{
}

Parameters

Name Type Allows Null Description
documentBuilder horstoeko\zugferd\ZugferdDocumentBuilder
The instance of the document builder. Needed to get the XML data
pdfData string
The full filename or a string containing the binary pdf data. This
is the original PDF (e.g. created by a ERP system)

setDeterministicModeEnabled

Summary

Set the the deterministic mode. This mode should only be used
for testing purposes

Signature

public function setDeterministicModeEnabled(bool $deterministicModeEnabled): static
{
}

Parameters

Name Type Allows Null Description
deterministicModeEnabled bool

Returns

Returns a value of type static

setAuthorTemplate

Summary

Set the template for the author meta information

Signature

public function setAuthorTemplate(string $authorTemplate): static
{
}

Parameters

Name Type Allows Null Description
authorTemplate string

Returns

Returns a value of type static

setKeywordTemplate

Summary

Set the template for the keyword meta information

Signature

public function setKeywordTemplate(string $keywordTemplate): static
{
}

Parameters

Name Type Allows Null Description
keywordTemplate string

Returns

Returns a value of type static

setTitleTemplate

Summary

Set the template for the title meta information

Signature

public function setTitleTemplate(string $titleTemplate): static
{
}

Parameters

Name Type Allows Null Description
titleTemplate string

Returns

Returns a value of type static

setSubjectTemplate

Summary

Set the template for the subject meta information

Signature

public function setSubjectTemplate(string $subjectTemplate): static
{
}

Parameters

Name Type Allows Null Description
subjectTemplate string

Returns

Returns a value of type static

setMetaInformationCallback

Summary

Set the user defined callback for generating custom meta information

Signature

public function setMetaInformationCallback(?callable $callback = null): static
{
}

Parameters

Name Type Allows Null Description
callback callable ✔️

Returns

Returns a value of type static

Clone this wiki locally