ppttotext

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFromPathByTika

func ExtractFromPathByTika(path string, tikaServerURL string) (string, int, error)

ExtractFromPathByTika extracts text data from a ppt file located at the given path using Tika server.

Parameters:

  • path: The path of the ppt file to extract data from.
  • tikaServerURL: The URL of the Tika server to use for extraction.

Returns:

  • string: The extracted data.
  • int: The status code of the HTTP response from the Tika server.
  • error: An error if any occurred during extraction.

func ExtractFromReaderByTika

func ExtractFromReaderByTika(r io.Reader, size int, tikaServerURL string) (string, int, error)

ExtractFromReaderByTika extracts text data from an io.Reader using the Tika server.

Parameters:

  • r: The io.Reader from which to extract data.
  • size: The size of the data in the io.Reader.
  • tikaServerURL: The URL of the Tika server.

Returns:

  • string: The extracted data.
  • int: The status code of HTTP response from the Tika server.
  • error: An error if any occurred during extraction.

func ExtractFromURLByTika

func ExtractFromURLByTika(u string, tikaServerURL string) (string, int, error)

ExtractFromURLByTika extracts text data from the specified URL using a Tika server.

Parameters:

  • u: the URL to extract data from.
  • tikaServerURL: the URL of the Tika server to use.

Returns:

  • string: the extracted data.
  • int: the status code of the URL or Tika Server HTTP response.
  • error: an error if any occurred.

Types

This section is empty.

Jump to

Keyboard shortcuts

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