Documentation
¶
Index ¶
- Variables
- func IsValidation(err error) bool
- type ExcelCSVOptions
- type ExcelFillArtifact
- type ExcelFillConfig
- type ExcelFillJob
- type ExcelPDFOptions
- type ExcelTemplateAnalyzeConfig
- type ExcelTemplateAnalyzeJob
- type FileArtifact
- func ConvertExcelToCSV(ctx context.Context, job FileJob) (FileArtifact, error)
- func ConvertExcelToCSVWithOptions(ctx context.Context, job FileJob, opts ExcelCSVOptions) (FileArtifact, error)
- func ConvertExcelToPDF(ctx context.Context, job FileJob) (FileArtifact, error)
- func ConvertExcelToPDFWithBackend(ctx context.Context, job FileJob, backend string) (FileArtifact, error)
- func ConvertExcelToPDFWithOptions(ctx context.Context, job FileJob, opts ExcelPDFOptions) (FileArtifact, error)
- func ConvertPDFToImage(ctx context.Context, job FileJob, format string) (FileArtifact, error)
- func ConvertPDFToImageWithBackend(ctx context.Context, job FileJob, format string, backend string) (FileArtifact, error)
- func ConvertPDFToImageWithOptions(ctx context.Context, job FileJob, format string, opts PDFImageOptions) (FileArtifact, error)
- type FileJob
- type ImageToMarkdownConfig
- type ImageToMarkdownJob
- type MarkdownArtifact
- type PDFImageOptions
- type StructureArtifact
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidArgs = errors.New("invalid arguments") ErrInputRequired = errors.New("input is required") )
Functions ¶
func IsValidation ¶
Types ¶
type ExcelCSVOptions ¶
type ExcelFillArtifact ¶
func FillExcel ¶
func FillExcel(ctx context.Context, job ExcelFillJob, cfg ExcelFillConfig) (ExcelFillArtifact, error)
type ExcelFillConfig ¶
type ExcelFillJob ¶
type ExcelPDFOptions ¶
type ExcelTemplateAnalyzeJob ¶
type FileArtifact ¶
func ConvertExcelToCSV ¶
func ConvertExcelToCSV(ctx context.Context, job FileJob) (FileArtifact, error)
func ConvertExcelToCSVWithOptions ¶
func ConvertExcelToCSVWithOptions(ctx context.Context, job FileJob, opts ExcelCSVOptions) (FileArtifact, error)
func ConvertExcelToPDF ¶
func ConvertExcelToPDF(ctx context.Context, job FileJob) (FileArtifact, error)
func ConvertExcelToPDFWithOptions ¶
func ConvertExcelToPDFWithOptions(ctx context.Context, job FileJob, opts ExcelPDFOptions) (FileArtifact, error)
func ConvertPDFToImage ¶
func ConvertPDFToImageWithOptions ¶
func ConvertPDFToImageWithOptions(ctx context.Context, job FileJob, format string, opts PDFImageOptions) (FileArtifact, error)
type ImageToMarkdownConfig ¶
type ImageToMarkdownConfig struct {
ServerURL string
Agent string
Model string
TernMode string
TernConfigPath string
Verbose bool
Quiet bool
StrictGapJudge bool
SaveQuestionLog bool
RoundSleepMS int
PhaseSleepMS int
MaxRounds int
}
func DefaultImageToMarkdownConfig ¶
func DefaultImageToMarkdownConfig() ImageToMarkdownConfig
type ImageToMarkdownJob ¶
type MarkdownArtifact ¶
func ConvertImageToMarkdown ¶
func ConvertImageToMarkdown(ctx context.Context, job ImageToMarkdownJob, cfg ImageToMarkdownConfig) (MarkdownArtifact, error)
type PDFImageOptions ¶
type StructureArtifact ¶
type StructureArtifact struct {
StructurePath string
}
func AnalyzeExcelTemplate ¶
func AnalyzeExcelTemplate(ctx context.Context, job ExcelTemplateAnalyzeJob, cfg ExcelTemplateAnalyzeConfig) (StructureArtifact, error)
type ValidationError ¶
type ValidationError struct {
Err error
}
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
excel-fill
command
|
|
|
excel-template-analyze
command
|
|
|
excel-to-csv
command
|
|
|
excel-to-pdf
command
|
|
|
image-to-markdown
command
|
|
|
pdf-to-image
command
|
|
|
internal
|
|
Click to show internal directories.
Click to hide internal directories.