Documentation
¶
Index ¶
- Constants
- func Copy(srcPath *string, destPath *string)
- func Sign(pdfPath *string, privateKeyPath *string, certificatePath *string, ...)
- func ToPath(path *string) string
- type Builder
- type FieldEntity
- type Hex
- type Pdf
- func (this *Pdf) AddFont(family string, path string) error
- func (this *Pdf) AddStyles(styles *map[string]StyleEntity)
- func (this *Pdf) DrawText(rect *Rect, styleName *string, text *string)
- func (this *Pdf) FillText(rect *Rect, styleName *string)
- func (this *Pdf) GetPaperSize(paperSize *string, orientation *string) *gopdf.Rect
- func (this *Pdf) Output(path *string)
- type PdfEntity
- type RGB
- type RecordEntity
- type RecordFieldEntity
- type Rect
- type SigningInfo
- type Style
- type StyleEntity
- type StyleHorizontalAlignment
- type StyleOverflow
- type StyleVerticalAlignment
- type TypeOrientation
- type TypePaperSize
Constants ¶
View Source
const ( Portlait = TypeOrientation("portlait") Landscape = TypeOrientation("landscape") )
View Source
const ( A1 = TypePaperSize("A1") A2 = TypePaperSize("A2") A3 = TypePaperSize("A3") A4 = TypePaperSize("A4") A5 = TypePaperSize("A5") // B1 = TypePaperSize("B1") // B2 = TypePaperSize("B2") // B3 = TypePaperSize("B3") B4 = TypePaperSize("B4") B5 = TypePaperSize("B5") )
View Source
const ( Crop = StyleOverflow("crop") Overflow = StyleOverflow("overflow") Autoscale = StyleOverflow("autoscale") )
View Source
const ( Left = StyleHorizontalAlignment("left") Center = StyleHorizontalAlignment("center") Right = StyleHorizontalAlignment("right") )
View Source
const ( Top = StyleVerticalAlignment("top") Middle = StyleVerticalAlignment("middle") Bottom = StyleVerticalAlignment("bottom") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type FieldEntity ¶
type FieldEntity struct { DataSource string Style string Rect [4]float64 Record RecordEntity }
type Pdf ¶
gopdf.GoPdf structure with style
func (*Pdf) AddStyles ¶
func (this *Pdf) AddStyles(styles *map[string]StyleEntity)
func (*Pdf) GetPaperSize ¶
type PdfEntity ¶
type PdfEntity struct { Version string Orientation string Size string Image string Fonts map[string]string Styles map[string]StyleEntity Fields []FieldEntity }
type RecordEntity ¶
type RecordEntity struct { Direction string Size []float64 Fields []RecordFieldEntity }
type RecordFieldEntity ¶
type SigningInfo ¶
type Style ¶
type Style struct { FontFamily string FontSize float64 Color string Underline bool HorizontalAlignment StyleHorizontalAlignment VerticalAlignment StyleVerticalAlignment Overflow StyleOverflow Multiline bool }
type StyleEntity ¶
type StyleHorizontalAlignment ¶
type StyleHorizontalAlignment string
type StyleOverflow ¶
type StyleOverflow string
type StyleVerticalAlignment ¶
type StyleVerticalAlignment string
type TypeOrientation ¶
type TypeOrientation string
type TypePaperSize ¶
type TypePaperSize string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.