func (v Value) Text() string {
	x, ok := v.data.(string)
	if !ok {
		return ""
	}
	if isPDFDocEncoded(x) {
		return pdfDocDecode(x)
	}
	if isUTF16(x) {
		return utf16Decode(x[2:])
	}
	return x
}
func (v Value) Text() string {
	x, ok := v.data.(string)
	if !ok {
		return ""
	}
	if isPDFDocEncoded(x) {
		return pdfDocDecode(x)
	}
	if isUTF16(x) {
		return utf16Decode(x[2:])
	}
	return x
}
func ( v Value ) Text ( ) string { x , ok := v . data . ( string ) if ! ok { return " " } if isPDFDocEncoded ( x ) { return pdfDocDecode ( x ) } if isUTF16 ( x ) { return utf16Decode ( x [ 2 : ] ) } return x }
// Text returns v's string value interpreted as a ``text string'' (defined in the PDF spec)
// and converted to UTF-8.
// If v.Kind() != String, Text returns the empty string.
Text returns v s string value interpreted as a text string ( defined in the PDF spec ) and converted to UTF - 8 . If v . Kind () ! = String Text returns the empty string .