Documentation
¶
Index ¶
Constants ¶
View Source
const ( AlignmentLeft = 0 AlignmentCenter = 1 AlignmentRight = 2 OrientationLandscape = 0 OrientationPortrait = 1 )
Variables ¶
This section is empty.
Functions ¶
func PdfPageCount ¶
PdfPageCount returns the number of pages in a PDF document
func PdfPageToImage ¶
PdfPageToImage creates an image.Image object from the specified PDF page
Types ¶
type Orientation ¶
type Orientation int
func (Orientation) String ¶
func (o Orientation) String() string
type Replacement ¶
type Replacement struct {
Default string `yaml:"default" json:"default_value"`
FontFamily string `yaml:"font-family" json:"font_family"`
FontJson string `yaml:"font-json" json:"font_json"`
FontSize float64 `yaml:"font-size" json:"font_size"`
PosX float64 `yaml:"pos-x" json:"x"`
PosY float64 `yaml:"pos-y" json:"y"`
Alignment Alignment `yaml:"align" json:"align"`
}
type TemplateGenerator ¶
type TemplateGenerator struct {
Orientation Orientation
Template string
OverrideReplacements map[string]string
Replacements map[string]Replacement
FontDir string
Debug bool
}
Click to show internal directories.
Click to hide internal directories.
