Versions in this module Expand all Collapse all v0 v0.2.0 Aug 28, 2018 Changes in this version + const Bold + const Bottom + const Center + const Italic + const Left + const Middle + const Regular + const Right + const Top + const Underline + var ErrAddSameFontName = errors.New("add same font name") + var ErrCrawlResultValOfNotFound = errors.New("CrawlResult Val Of Not Found") + var ErrFontNameNotFound = errors.New("font name not found") + var ErrWrongTypeOfVal = errors.New("wrong type of val") + var ErrorObjectIDNotFound = errors.New("Object ID not found") + func PDFParse(file io.Reader, outPdf *PDFData) error + type ContentLineStyle struct + type ContentText struct + type Contenter interface + type FuncKernOverride func(leftRune rune, rightRune rune, leftPair uint, rightPair uint, pairVal int16) int16 + type FuncTextriseOverride func(leftRune rune, rightRune rune, fontsize int, allText string, currTextIndex int) float32 + type PDFData struct + func (p *PDFData) Len() int + type PDFFontData struct + func PDFParseFont(path string, name string) (*PDFFontData, error) + type PDFImageData struct + type PDFObjData struct + type PDFObjPropertiesData []PDFObjPropertyData + type PDFObjPropertyData struct + type PDFt struct + func (i *PDFt) AddFont(name string, ttfpath string) error + func (i *PDFt) Insert(text string, pageNum int, x float64, y float64, w float64, h float64, ...) error + func (i *PDFt) InsertImg(img []byte, pageNum int, x float64, y float64, w float64, h float64) error + func (i *PDFt) InsertImgBase64(base64str string, pageNum int, x float64, y float64, w float64, h float64) error + func (i *PDFt) KernOverride(name string, fn FuncKernOverride) error + func (i *PDFt) Open(filepath string) error + func (i *PDFt) Save(filepath string) error + func (i *PDFt) SaveTo(w io.Writer) error + func (i *PDFt) SetFont(name string, style string, size int) error + func (i *PDFt) SetProtection(permissions int, userPass []byte, ownerPass []byte) error + func (i *PDFt) ShowCellBorder(isShow bool) + func (i *PDFt) TextriseOverride(name string, fn FuncTextriseOverride) error + type TrailerData struct + type XrefData struct + G5Digit int + Keyword string + N10Digit int