encoding

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

Variables

This section is empty.

Functions

func IsPDFDocEncoded

func IsPDFDocEncoded(s string) bool

func IsUTF16

func IsUTF16(s string) bool

func NewAlphaReader

func NewAlphaReader(reader io.Reader) *alphaReader

func PDFDocDecode

func PDFDocDecode(s string) string

func UTF16Decode

func UTF16Decode(s string) string

Types

type BFChar

type BFChar struct {
	Orig string
	Repl string
}

type BFRange

type BFRange struct {
	Lo   string
	Hi   string
	DstS string
	DstA []any
}

type Byte

type Byte struct {
	// contains filtered or unexported fields
}

func MacRoman

func MacRoman(s Sizer) *Byte

func PDFDoc

func PDFDoc(s Sizer) *Byte

func WinANSI

func WinANSI(s Sizer) *Byte

func (*Byte) Decode

func (e *Byte) Decode(raw string) (string, float64)

type ByteRange

type ByteRange struct {
	Lo string
	Hi string
}

type CMap

type CMap struct {
	Widths   Sizer
	Space    [4][]ByteRange // codespace range
	BFRanges []BFRange
	BFChars  []BFChar
}

func (*CMap) Decode

func (m *CMap) Decode(raw string) (string, float64)

type Dict

type Dict struct {
	Elements []any
}

func (*Dict) Decode

func (e *Dict) Decode(raw string) string

type Sizer

type Sizer interface {
	CodeWidth(code int) float64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL