mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-13 08:28:22 +08:00
20 lines
457 B
Go
20 lines
457 B
Go
|
|
//go:build !cgo
|
||
|
|
|
||
|
|
package pdf
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"fmt"
|
||
|
|
|
||
|
|
pdf "ragflow/internal/deepdoc/parser/pdf/type"
|
||
|
|
)
|
||
|
|
|
||
|
|
// Parse is the no-CGO stub for the DeepDOC PDF pipeline. The surrounding
|
||
|
|
// parser package converts this into parser.ErrPDFEngineUnavailable.
|
||
|
|
func (p *Parser) Parse(ctx context.Context, data []byte, docAnalyzer pdf.DocAnalyzer) (*pdf.ParseResult, error) {
|
||
|
|
_ = ctx
|
||
|
|
_ = data
|
||
|
|
_ = docAnalyzer
|
||
|
|
return nil, fmt.Errorf("deepdoc/pdf: cgo required")
|
||
|
|
}
|