testutils

package
v3.0.0-...-55e877b Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRenderNotSupported = _da.New("\u0072\u0065\u006e\u0064\u0065r\u0069\u006e\u0067\u0020\u0050\u0044\u0046\u0020\u0066\u0069\u006c\u0065\u0073 \u0069\u0073\u0020\u006e\u006f\u0074\u0020\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064\u0020\u006f\u006e\u0020\u0074\u0068\u0069\u0073\u0020\u0073\u0079\u0073\u0074\u0065m")
)

Functions

func CompareDictionariesDeep

func CompareDictionariesDeep(d1, d2 *_ed.PdfObjectDictionary) bool

func CompareImages

func CompareImages(img1, img2 _be.Image) (bool, error)

func ComparePNGFiles

func ComparePNGFiles(file1, file2 string) (bool, error)

func CopyFile

func CopyFile(src, dst string) error

func HashFile

func HashFile(file string) (string, error)

func ParseIndirectObjects

func ParseIndirectObjects(rawpdf string) (map[int64]_ed.PdfObject, error)

func ReadPNG

func ReadPNG(file string) (_be.Image, error)

func RenderPDFToPNGs

func RenderPDFToPNGs(pdfPath string, dpi int, outpathTpl string) error

func RunRenderTest

func RunRenderTest(t *_d.T, pdfPath, outputDir, baselineRenderPath string, saveBaseline bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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