Table of contents
Namespace: Com\Tecnick\Pdf\Font
Final: Yes
File: FileWriter.php line 37
Writes the artifacts produced by the font import.
Tags
- since: 2026-08-14
- category: Library
- author: Nicola Asuni info@tecnick.com
- copyright: 2011-2026 Nicola Asuni - Tecnick.com LTD
- license: https://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE)
- link: https://github.com/tecnickcom/tc-lib-pdf-font
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.