encodeWinAnsi
@forge/monorepo / backend/src / encodeWinAnsi
Function: encodeWinAnsi()
encodeWinAnsi(
text):object
Defined in: backend/src/export/pdf.ts:79
WinAnsi-encode a string for a PDF literal, reporting what could not be represented.
Reported rather than substituted silently: a report whose CJK title rendered as ???? is a report someone
sends to a colleague believing it is correct, and finding out later is worse than being told now.
Parameters
text
string
Returns
object
dropped
dropped:
string[]
encoded
encoded:
string