toPdfString method
Serialize this object to PDF syntax bytes.
Implementation
@override
String toPdfString() {
if (isHex) {
final hex = value.codeUnits
.map((c) => c.toRadixString(16).padLeft(2, '0'))
.join();
return '<$hex>';
}
return '(${_escapePdfString(value)})';
}