docpagestest

package
v0.7.34-dev.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package docpagestest makes the documents the Report Designer's tests read: a PDF of plain pages and a Word document with a theme, running text and a picture.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Docx

func Docx(t testing.TB) []byte

Docx is a Word document with a theme, a font table, a header, a footer and one PNG picture.

func PDF

func PDF(n int, fill string) []byte

PDF is a PDF of n A4 pages, each a filled rectangle of fill (an "r g b" triple of 0 to 1) across its top and a line of Helvetica.

func PNG

func PNG(t testing.TB, w, h int, c color.Color) []byte

PNG is a w by h PNG of one colour.

func PicturePDF added in v0.7.29

func PicturePDF() []byte

PicturePDF is a PDF of three A4 pages that draws pictures, uncompressed: on page 1 a 120 by 60 logo of fill whose left half is opaque and right half transparent (a soft mask), a 300 by 200 opaque photograph of a gradient, and a 12 by 12 bullet; on pages 2 and 3 the same logo again, as a running header draws it; page 3 draws no new picture.

Types

This section is empty.

Jump to

Keyboard shortcuts

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