easypdf

package
v0.0.0-...-dd8a4bf Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirWatcher

func DirWatcher(dir string, change chan bool)

func FileWatcher

func FileWatcher(files []string, change chan bool)

Types

type MdToPdf

type MdToPdf struct {
	Files             []string
	Directory         string
	OutputFilename    string
	CssFilename       string
	CoverPageFileName string
	WatchMode         bool
	Toc
}

func (*MdToPdf) AddCoverPage

func (mdpdf *MdToPdf) AddCoverPage(coverPageFileName string) (*os.File, error)

func (*MdToPdf) ConvertFileToPDF

func (mdpdf *MdToPdf) ConvertFileToPDF() error

func (*MdToPdf) IntegrateCSS

func (mdpdf *MdToPdf) IntegrateCSS(html *bytes.Buffer) error

type Toc

type Toc struct {
	Include             bool
	DisableDottedLines  bool
	DisableTocLinks     bool
	TocHeaderText       string
	TocLevelIndentation uint
	TocTextSizeShrink   float64
}

func (*Toc) SetTOCFields

func (toc *Toc) SetTOCFields(pdfg *htmltopdf.PDFGenerator)

Jump to

Keyboard shortcuts

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