()
| 2359 | } |
| 2360 | |
| 2361 | func (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 | |
| 2375 | func encodeUtf8(str string) string { |
| 2376 | var buff bytes.Buffer |
no test coverage detected