StringAtom Decode Function. Decode a PDF encoded string into a plain string format. ABCpdf .NET PDF Library.

ABCpdf .net

 
   

Decode a PDF encoded string into a plain string format

 

   
Syntax  

[C#]
StringBuilder Decode(string text, StringBuilder builder)

[Visual Basic]
Function Decode(text As String, builder As StringBuilder) As StringBuilder

 

   

Params
 
Name Description
text The text to be decoded.
builder The StringBuilder to which the encoded representation should be appended. If null then one will be created.
return The StringBuilder supplied or created.

 

   

Notes
 

Decode a PDF encoded string into a plain string format.

This type of operation can be useful if you are extracting text from a PDF content stream containing raw PDF string operators.

Typically you would use the StringAtom Decode or DecodeDoubleByte methods to allow text operator parameters to be decoded into the base text encoding. These can then be passed through the FontObject EncodingToChar and EncodingToString properties to allow mapping from the text encoding through to Unicode values.

 

   

Example
 

None.