pdfgen

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const BREAK_HEIGHT = LINE_HEIGHT * FONT_SIZE
View Source
const CODE_FONT = "Courier"
View Source
const FONT_DIR = "fonts"
View Source
const FONT_EXTENSION = ".ttf"
View Source
const FONT_SIZE = 14
View Source
const LINE_HEIGHT = 1.5
View Source
const MAIN_FONT = "Roboto"
View Source
const MARGIN = 50
View Source
const PAGE_HEIGHT = 841.89
View Source
const PAGE_WIDTH = 595.28
View Source
const TOP_HEADER_FONT_SIZE = 28

Variables

View Source
var CELL_RECT *gopdf.Rect = nil
View Source
var DEFAULT_CELL_RECT = &gopdf.Rect{W: PAGE_WIDTH - MARGIN*2, H: BREAK_HEIGHT * 1.1}
View Source
var TEXT_COLOR = []uint8{0, 0, 0} // in rgb

Functions

func RenderPDF

func RenderPDF(doc *[]byte) (*gopdf.GoPdf, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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