| 1434 | return name |
| 1435 | |
| 1436 | def writeMarkers(self): |
| 1437 | for ((pathops, fill, stroke, joinstyle, capstyle), |
| 1438 | (name, ob, bbox, lw)) in self.markers.items(): |
| 1439 | bbox = bbox.padded(lw * 0.5) |
| 1440 | self.beginStream( |
| 1441 | ob.id, None, |
| 1442 | {'Type': Name('XObject'), 'Subtype': Name('Form'), |
| 1443 | 'BBox': list(bbox.extents)}) |
| 1444 | self.output(GraphicsContextPdf.joinstyles[joinstyle], |
| 1445 | Op.setlinejoin) |
| 1446 | self.output(GraphicsContextPdf.capstyles[capstyle], Op.setlinecap) |
| 1447 | self.output(*pathops) |
| 1448 | self.output(Op.paint_path(fill, stroke)) |
| 1449 | self.endStream() |
| 1450 | |
| 1451 | def pathCollectionObject(self, gc, path, trans, padding, filled, stroked): |
| 1452 | name = Name('P%d' % len(self.paths)) |