Documentation ¶
Index ¶
- func Chr(n int) byte
- func ContentObj_CalTextHeight(fontsize int) float64
- func FontConvertHelper_Cw2Str(cw FontCw) string
- func StrHelper_GetStringWidth(str string, fontSize int, ifont IFont) float64
- func ToByte(chr string) byte
- type BasicObj
- type CatalogObj
- type Config
- type ContentObj
- func (me *ContentObj) AppendStream(rectangle *Rect, text string)
- func (me *ContentObj) AppendStreamImage(index int, x float64, y float64, rect *Rect)
- func (me *ContentObj) AppendStreamLine(x1 float64, y1 float64, x2 float64, y2 float64)
- func (me *ContentObj) AppendStreamSetLineWidth(w float64)
- func (me *ContentObj) AppendUnderline(startX float64, y float64, endX float64, endY float64, text string)
- func (me *ContentObj) Build()
- func (me *ContentObj) GetObjBuff() *bytes.Buffer
- func (me *ContentObj) GetType() string
- func (me *ContentObj) Init(funcGetRoot func() *GoPdf)
- type Current
- type EmbedFontObj
- type EncodingObj
- type FontCw
- type FontDescItem
- type FontDescriptorObj
- func (me *FontDescriptorObj) Build()
- func (me *FontDescriptorObj) GetFont() IFont
- func (me *FontDescriptorObj) GetObjBuff() *bytes.Buffer
- func (me *FontDescriptorObj) GetType() string
- func (me *FontDescriptorObj) Init(funcGetRoot func() *GoPdf)
- func (me *FontDescriptorObj) SetFont(font IFont)
- func (me *FontDescriptorObj) SetFontFileObjRelate(relate string)
- type FontObj
- func (me *FontObj) Build()
- func (me *FontObj) GetObjBuff() *bytes.Buffer
- func (me *FontObj) GetType() string
- func (me *FontObj) Init(funcGetRoot func() *GoPdf)
- func (me *FontObj) SetIndexObjEncoding(index int)
- func (me *FontObj) SetIndexObjFontDescriptor(index int)
- func (me *FontObj) SetIndexObjWidth(index int)
- type GoPdf
- func (me *GoPdf) AddFont(family string, ifont IFont, zfontpath string)
- func (me *GoPdf) AddPage()
- func (me *GoPdf) Br(h float64)
- func (me *GoPdf) Cell(rectangle *Rect, text string)
- func (me *GoPdf) GetBytesPdf() []byte
- func (me *GoPdf) GetX() float64
- func (me *GoPdf) GetY() float64
- func (me *GoPdf) Image(picPath string, x float64, y float64, rect *Rect)
- func (me *GoPdf) Line(x1 float64, y1 float64, x2 float64, y2 float64)
- func (me *GoPdf) SetFont(family string, style string, size int)
- func (me *GoPdf) SetLeftMargin(margin float64)
- func (me *GoPdf) SetLineWidth(width float64)
- func (me *GoPdf) SetTopMargin(margin float64)
- func (me *GoPdf) SetX(x float64)
- func (me *GoPdf) SetY(y float64)
- func (me *GoPdf) Start(config Config)
- func (me *GoPdf) WritePdf(pdfPath string)
- type IFont
- type IObj
- type ImageCache
- type ImageObj
- type PageObj
- type PagesObj
- type ProcSetObj
- type RealteXobject
- type RealteXobjects
- type Rect
- type RelateFont
- type RelateFonts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicObj ¶
type BasicObj struct { Data string // contains filtered or unexported fields }
func (*BasicObj) GetObjBuff ¶
type CatalogObj ¶
type CatalogObj struct {
// contains filtered or unexported fields
}
func (*CatalogObj) Build ¶
func (me *CatalogObj) Build()
func (*CatalogObj) GetObjBuff ¶
func (me *CatalogObj) GetObjBuff() *bytes.Buffer
func (*CatalogObj) GetType ¶
func (me *CatalogObj) GetType() string
func (*CatalogObj) Init ¶
func (me *CatalogObj) Init(funcGetRoot func() *GoPdf)
type ContentObj ¶
type ContentObj struct {
// contains filtered or unexported fields
}
func (*ContentObj) AppendStream ¶
func (me *ContentObj) AppendStream(rectangle *Rect, text string)
func (*ContentObj) AppendStreamImage ¶
func (me *ContentObj) AppendStreamImage(index int, x float64, y float64, rect *Rect)
func (*ContentObj) AppendStreamLine ¶
func (me *ContentObj) AppendStreamLine(x1 float64, y1 float64, x2 float64, y2 float64)
func (*ContentObj) AppendStreamSetLineWidth ¶
func (me *ContentObj) AppendStreamSetLineWidth(w float64)
func (*ContentObj) AppendUnderline ¶
func (*ContentObj) Build ¶
func (me *ContentObj) Build()
func (*ContentObj) GetObjBuff ¶
func (me *ContentObj) GetObjBuff() *bytes.Buffer
func (*ContentObj) GetType ¶
func (me *ContentObj) GetType() string
func (*ContentObj) Init ¶
func (me *ContentObj) Init(funcGetRoot func() *GoPdf)
type EmbedFontObj ¶
type EmbedFontObj struct { Data string // contains filtered or unexported fields }
func (*EmbedFontObj) Build ¶
func (me *EmbedFontObj) Build()
func (*EmbedFontObj) GetObjBuff ¶
func (me *EmbedFontObj) GetObjBuff() *bytes.Buffer
func (*EmbedFontObj) GetType ¶
func (me *EmbedFontObj) GetType() string
func (*EmbedFontObj) Init ¶
func (me *EmbedFontObj) Init(funcGetRoot func() *GoPdf)
func (*EmbedFontObj) SetFont ¶
func (me *EmbedFontObj) SetFont(font IFont, zfontpath string)
type EncodingObj ¶
type EncodingObj struct {
// contains filtered or unexported fields
}
func (*EncodingObj) Build ¶
func (me *EncodingObj) Build()
func (*EncodingObj) GetFont ¶
func (me *EncodingObj) GetFont() IFont
func (*EncodingObj) GetObjBuff ¶
func (me *EncodingObj) GetObjBuff() *bytes.Buffer
func (*EncodingObj) GetType ¶
func (me *EncodingObj) GetType() string
func (*EncodingObj) Init ¶
func (me *EncodingObj) Init(funcGetRoot func() *GoPdf)
func (*EncodingObj) SetFont ¶
func (me *EncodingObj) SetFont(font IFont)
type FontDescItem ¶
type FontDescriptorObj ¶
type FontDescriptorObj struct {
// contains filtered or unexported fields
}
func (*FontDescriptorObj) Build ¶
func (me *FontDescriptorObj) Build()
func (*FontDescriptorObj) GetFont ¶
func (me *FontDescriptorObj) GetFont() IFont
func (*FontDescriptorObj) GetObjBuff ¶
func (me *FontDescriptorObj) GetObjBuff() *bytes.Buffer
func (*FontDescriptorObj) GetType ¶
func (me *FontDescriptorObj) GetType() string
func (*FontDescriptorObj) Init ¶
func (me *FontDescriptorObj) Init(funcGetRoot func() *GoPdf)
func (*FontDescriptorObj) SetFont ¶
func (me *FontDescriptorObj) SetFont(font IFont)
func (*FontDescriptorObj) SetFontFileObjRelate ¶
func (me *FontDescriptorObj) SetFontFileObjRelate(relate string)
type FontObj ¶
type FontObj struct { Family string //Style string //Size int IsEmbedFont bool Font IFont CountOfFont int // contains filtered or unexported fields }
func (*FontObj) GetObjBuff ¶
func (*FontObj) SetIndexObjEncoding ¶
func (*FontObj) SetIndexObjFontDescriptor ¶
func (*FontObj) SetIndexObjWidth ¶
type GoPdf ¶
type GoPdf struct { //ต่ำแหน่งปัจจุบัน Curr Current // contains filtered or unexported fields }
func (*GoPdf) Cell ¶
สร้าง cell ของ text Note that this has no effect on Rect.H pdf (now). Fix later :-)
func (*GoPdf) SetLeftMargin ¶
func (*GoPdf) SetLineWidth ¶
func (*GoPdf) SetTopMargin ¶
type ImageCache ¶
type ImageObj ¶
type ImageObj struct {
// contains filtered or unexported fields
}
func (*ImageObj) GetObjBuff ¶
func (*ImageObj) SetImagePath ¶
type PageObj ¶
type PageObj struct { Contents string ResourcesRelate string // contains filtered or unexported fields }
func (*PageObj) GetObjBuff ¶
type PagesObj ¶
func (*PagesObj) GetObjBuff ¶
type ProcSetObj ¶
type ProcSetObj struct { //Font Realtes RelateFonts RealteXobjs RealteXobjects // contains filtered or unexported fields }
func (*ProcSetObj) Build ¶
func (me *ProcSetObj) Build()
func (*ProcSetObj) GetObjBuff ¶
func (me *ProcSetObj) GetObjBuff() *bytes.Buffer
func (*ProcSetObj) GetType ¶
func (me *ProcSetObj) GetType() string
func (*ProcSetObj) Init ¶
func (me *ProcSetObj) Init(funcGetRoot func() *GoPdf)
type RealteXobject ¶
type RealteXobject struct {
IndexOfObj int
}
type RealteXobjects ¶
type RealteXobjects []RealteXobject
type RelateFont ¶
type RelateFonts ¶
type RelateFonts []RelateFont
func (*RelateFonts) IsContainsFamily ¶
func (me *RelateFonts) IsContainsFamily(family string) bool
Source Files ¶
Click to show internal directories.
Click to hide internal directories.