Versions in this module Expand all Collapse all v0 v0.1.5 Oct 21, 2026 Changes in this version + const SchemaVersion + func WriteReport(w io.Writer, report *Report, format string) error + type Comparison struct + DirectoriesAdded []string + DirectoriesRemoved []string + Equal bool + Files []FileChange + Pages []PageChange + PagesEqual bool + Summary Summary + Target int + type DocumentInfo struct + Author string + Creator string + ID string + Number int + Subject string + Title string + type File struct + Kind string + Path string + SHA256 string + Size uint64 + XMLNote string + XMLSHA256 string + type FileChange struct + After *File + AfterPreview string + Before *File + BeforePreview string + Status string + XMLChanges []ValueChange + XMLTruncated bool + XMLView *XMLView + type Input struct + Directories []string + Documents int + Files []File + Metadata []DocumentInfo + Name string + Pages []Page + Size int64 + type Options struct + Baseline int + BaselineCacheBytes int64 + DPI float64 + ImageWriter func([]byte) (string, error) + MaxChanges int + MaxPagePixels int64 + MaxPreviewBytes int64 + MaxReportBytes int64 + MaxTotalPixels int64 + MaxXMLBytes int64 + MaxXMLStructureBytes int64 + MinRegionPixels int + PageMap string + PageMatch string + Pages string + PixelTolerance int + Visual bool + type Page struct + ContentSHA256 string + Document int + Height float64 + Number int + PageInDocument int + Selected bool + Text string + Width float64 + type PageChange struct + After int + Before int + Match PageMatchInfo + Moved bool + SizeChanged bool + Status string + TextChanged bool + TextDiff []TextSpan + TextDiffCoarse bool + Visual *VisualChange + type PageMatchInfo struct + Method string + SearchLimited bool + TextSimilarity float64 + type PagePair struct + After int + Before int + func ParsePageMap(spec string) ([]PagePair, error) + type PageRange struct + First int + Last int + func ParsePageRanges(spec string) ([]PageRange, error) + type Report struct + Baseline int + Comparisons []Comparison + Inputs []Input + Options Options + SchemaVersion string + ToolVersion string + func CompareFiles(ctx context.Context, paths []string, options Options) (*Report, error) + type Summary struct + FilesAdded int + FilesModified int + FilesMoved int + FilesRemoved int + PagesAdded int + PagesModified int + PagesMoved int + PagesRemoved int + VisualPagesChanged int + type TextSpan struct + Kind string + Text string + type ValueChange struct + After *string + Before *string + Path string + type VisualChange struct + AfterPNG string + BeforePNG string + Bounds [4]int + ChangedPixels int64 + DiffPNG string + Height int + IgnoredRegionPixels int64 + Ratio float64 + RegionCount int + Regions []VisualRegion + RegionsTruncated bool + TotalPixels int64 + Width int + type VisualRegion struct + Bounds [4]int + ChangedPixels int64 + type XMLView struct + Blocks []XMLViewBlock + Coarse bool + Kind string + Note string + type XMLViewBlock struct + Equal bool + Folded bool + Lines []XMLViewLine + type XMLViewLine struct + After string + AfterNumber int + Before string + BeforeNumber int