FileWriter

Writes the artifacts produced by the font import.

Table of contents

Namespace: Com\Tecnick\Pdf\Font

Final: Yes

File: FileWriter.php line 37

Writes the artifacts produced by the font import.

Tags

Methods

write()

File: FileWriter.php line 52

public static write(File $fileHelper, string $file, string $data) : void

The number of bytes written is compared with the size of the data, and the diagnostic fwrite() emits on failure is captured and carried by the exception message.

Parameters

  • $fileHelper : File: File helper used to open the file.
  • $file : string: Full path of the file to write.
  • $data : string: Data to store.

Tags

  • throws: Exception if the file cannot be opened.
  • throws: Exception if the data cannot be stored in full.