collector

package
v0.0.0-...-9e2d708 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PdfImage

type PdfImage struct {
	Height int
	Width  int
	Path   string
	Name   string
	Type   string
}

PdfImage contains the information needed to add an image to a pdf file

func (*PdfImage) Reader

func (pdfImage *PdfImage) Reader() io.Reader

type PdfStructure

type PdfStructure struct {
	TableOfContents *TOC
	Images          []PdfImage
}

PdfStructure is the collection of data needed to generate a pdf

func Gather

func Gather(path string) []PdfStructure

Gather collects all image data needed for layouting from a folder

type TOC

type TOC struct {
	Title   string       `json:"title"`
	Entries []TOCChapter `json:"entries"`
}

TOC is the Table of Contents Contains image name indexes

type TOCChapter

type TOCChapter struct {
	Name string `json:"name"`
	File string `json:"file"`
}

TOCChapter is a chapter in the TOC

Jump to

Keyboard shortcuts

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