pdfsmart

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package pdfsmart re-exports internal/pdfsmart's page-aware PDF conversion for external consumers (e.g. seshat-ai).

Index

Constants

View Source
const (
	PageSourceNative  = internalpdfsmart.PageSourceNative
	PageSourceDocling = internalpdfsmart.PageSourceDocling
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PageResult

type PageResult = internalpdfsmart.PageResult

type PageSource

type PageSource = internalpdfsmart.PageSource

type Result

type Result = internalpdfsmart.Result

func Convert

func Convert(ctx context.Context, data []byte, doclingClient *docling.Client) (Result, bool, error)

Convert extracts a PDF's text page by page, sending only the pages that actually need it (an embedded image, or a sparse/garbled native text layer) through doclingClient instead of the whole document. See internal/pdfsmart's package doc for the exact routing rule, and Convert's own doc comment there for the ok=false safety contract.

Jump to

Keyboard shortcuts

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