mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
This commit is contained in:
1 parent
619899e297
commit
e8344e6387
27 files changed
+754
-150
No files matched your search
+4
-2
@@ -936,20 +936,22 @@ func (x *ofdXML) clips(clips *Clips) {
|
||||
var attrs ofdAttrs
|
||||
attrs.add("CTM", area.CTM)
|
||||
attrs.add("DrawParam", area.DrawParam)
|
||||
x.start("Area", attrs)
|
||||
for _, path := range area.Path {
|
||||
if x.err != nil {
|
||||
return
|
||||
}
|
||||
x.start("Area", attrs)
|
||||
x.object(GraphicObject{Type: "Path", PathObject: path}, false)
|
||||
x.end("Area")
|
||||
}
|
||||
for _, text := range area.Text {
|
||||
if x.err != nil {
|
||||
return
|
||||
}
|
||||
x.start("Area", attrs)
|
||||
x.object(GraphicObject{Type: "Text", TextObject: text}, false)
|
||||
x.end("Area")
|
||||
}
|
||||
x.end("Area")
|
||||
}
|
||||
x.end("Clip")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user