Versions in this module Expand all Collapse all v0 v0.0.1 May 29, 2024 Changes in this version + func ConvertDoc(r io.Reader) (string, map[string]string, error) + func ConvertDocx(r io.Reader) (string, map[string]string, error) + func ConvertHTML(r io.Reader, readability bool) (string, map[string]string, error) + func ConvertImage(r io.Reader) (string, map[string]string, error) + func ConvertODT(r io.Reader) (string, map[string]string, error) + func ConvertPDF(r io.Reader) (string, map[string]string, error) + func ConvertPDFText(path string) (BodyResult, MetaResult, error) + func ConvertPages(r io.Reader) (string, map[string]string, error) + func ConvertPathReadability(path string, readability bool) ([]byte, error) + func ConvertPptx(r io.Reader) (string, map[string]string, error) + func ConvertRTF(r io.Reader) (string, map[string]string, error) + func ConvertURL(input io.Reader, readability bool) (string, map[string]string, error) + func ConvertXML(r io.Reader) (string, map[string]string, error) + func DocxXMLToText(r io.Reader) (string, error) + func HTMLReadability(r io.Reader) ([]byte, error) + func HTMLToText(input io.Reader) (string, error) + func MimeTypeByExtension(filename string) string + func SetImageLanguages(...string) + func Tidy(r io.Reader, xmlIn bool) ([]byte, error) + func XMLToMap(r io.Reader) (map[string]string, error) + func XMLToText(r io.Reader, breaks []string, skip []string, strict bool) (string, error) + type BodyResult struct + type HTMLReadabilityOptions struct + LengthHigh int + LengthLow int + MaxHeadingDistance int + MaxLinkDensity float64 + ReadabilityUseClasses string + StopwordsHigh float64 + StopwordsLow float64 + var HTMLReadabilityOptionsValues HTMLReadabilityOptions + type LocalFile struct + func NewLocalFile(r io.Reader) (*LocalFile, error) + func (l *LocalFile) Done() + type MetaResult struct + type Response struct + Body string + Error string + MSecs uint32 + Meta map[string]string + func Convert(r io.Reader, mimeType string, readability bool) (*Response, error) + func ConvertPath(path string) (*Response, error)