MCPcopy
hub / github.com/signintech/gopdf / getContent

Method getContent

gopdf.go:2361–2373  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2359}
2360
2361func (gp *GoPdf) getContent() *ContentObj {
2362 var content *ContentObj
2363 if gp.indexOfContent <= -1 {
2364 content = new(ContentObj)
2365 content.init(func() *GoPdf {
2366 return gp
2367 })
2368 gp.indexOfContent = gp.addObj(content)
2369 } else {
2370 content = gp.pdfObjs[gp.indexOfContent].(*ContentObj)
2371 }
2372 return content
2373}
2374
2375func encodeUtf8(str string) string {
2376 var buff bytes.Buffer

Callers 15

SetLineWidthMethod · 0.95
SetLineTypeMethod · 0.95
SetCustomLineTypeMethod · 0.95
LineMethod · 0.95
RectFromLowerLeftMethod · 0.95
RectFromUpperLeftMethod · 0.95
OvalMethod · 0.95
SetGrayFillMethod · 0.95
SetGrayStrokeMethod · 0.95
maskHolderMethod · 0.95

Calls 2

initMethod · 0.95
addObjMethod · 0.95

Tested by

no test coverage detected