Versions in this module Expand all Collapse all v0 v0.1.8 Oct 31, 2026 v0.1.7 Oct 30, 2026 Changes in this version + var ErrInvalid = errors.New("无法拆分 OFD") + func ParseGroups(spec string, maxPages, maxParts int) ([][]int, error) + type DocumentInfo struct + ID string + Index int + Pages int + Title string + type Limits struct + MaxEntries int + MaxEntryBytes int64 + MaxInputBytes int64 + MaxOutputBytes int64 + MaxPages int + MaxParts int + MaxTotalBytes int64 + type Options struct + Compression creator.CompressionMode + CompressionLevel int + Deterministic bool + DropIntegrity bool + KeepAttachments bool + Limits Limits + Signatures creator.SignatureMode + type Part struct + Document int + Pages []int + WholeDocument bool + type Report struct + Bytes int64 + DocID string + Document int + Dropped []string + DroppedSignatures []string + Pages []int + Signatures []string + SourceID string + type Selection struct + ByDocument bool + Document int + Every int + Groups [][]int + type Session struct + func Open(ctx context.Context, input any, options Options) (*Session, error) + func (s *Session) Close() error + func (s *Session) Documents() []DocumentInfo + func (s *Session) Plan(selection Selection) ([]Part, error) + func (s *Session) Write(ctx context.Context, part Part, w io.Writer) (Report, error) + type Source struct + Data []byte + Path string + Reader io.ReaderAt + Size int64