Add Do function to content creator

This commit is contained in:
Gunnsteinn Hall 2017-05-20 14:01:44 +00:00
parent d241837196
commit 36aaf59139

View File

@ -41,6 +41,15 @@ func (this *ContentCreator) Add_Q() *ContentCreator {
return this
}
// Display XObject - image or form.
func (this *ContentCreator) Add_Do(name PdfObjectName) *ContentCreator {
op := ContentStreamOperation{}
op.Operand = "Do"
op.Params = makeParamsFromNames([]PdfObjectName{name})
this.operands = append(this.operands, &op)
return this
}
// Modify the current transformation matrix (ctm).
func (this *ContentCreator) Add_cm(a, b, c, d, e, f float64) *ContentCreator {
op := ContentStreamOperation{}