mirror of
https://github.com/unidoc/unipdf.git
synced 2025-05-01 22:17:29 +08:00
Add Do function to content creator
This commit is contained in:
parent
d241837196
commit
36aaf59139
@ -41,6 +41,15 @@ func (this *ContentCreator) Add_Q() *ContentCreator {
|
|||||||
return this
|
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).
|
// Modify the current transformation matrix (ctm).
|
||||||
func (this *ContentCreator) Add_cm(a, b, c, d, e, f float64) *ContentCreator {
|
func (this *ContentCreator) Add_cm(a, b, c, d, e, f float64) *ContentCreator {
|
||||||
op := ContentStreamOperation{}
|
op := ContentStreamOperation{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user