Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConvertToTextInput ¶
type ConvertToTextInput struct {
// Doc: Document to convert
Doc string `json:"doc"`
}
ConvertToTextInput defines the input for convert to text task
type ConvertToTextOutput ¶
type ConvertToTextOutput struct {
// Body: Plain text converted from the document
Body string `json:"body"`
// Meta: Metadata extracted from the document
Meta map[string]string `json:"meta"`
// MSecs: Time taken to convert the document
MSecs uint32 `json:"msecs"`
// Error: Error message if any during the conversion process
Error string `json:"error"`
}
ConvertToTextOutput defines the output for convert to text task
type DocxDocToMarkdownTransformer ¶
type DocxDocToMarkdownTransformer struct {
Base64EncodedText string
FileExtension string
DisplayImageTag bool
Converter string
}
func (DocxDocToMarkdownTransformer) Transform ¶
func (t DocxDocToMarkdownTransformer) Transform() (string, error)
type HTMLToMarkdownTransformer ¶
type HTMLToMarkdownTransformer struct {
Base64EncodedText string
FileExtension string
DisplayImageTag bool
Converter string
}
func (HTMLToMarkdownTransformer) Transform ¶
func (t HTMLToMarkdownTransformer) Transform() (string, error)
type MarkdownTransformer ¶
Click to show internal directories.
Click to hide internal directories.