Lines Matching refs:doc

81 		var doc = printer.createPdfKitDocument(this.docDefinition, options);
85 doc.on('data', function(chunk) {
88 doc.on('end', function() {
90 callback(result, doc._pdfMakePages);
92 doc.end();
28155 function PDFGradient(doc) {
28156 this.doc = doc;
28168 this.stops.push([pos, this.doc._normalizeColor(color), opacity]);
28190 fn = this.doc.ref({
28203 fn = this.doc.ref({
28212 this.id = 'Sh' + (++this.doc._gradCount);
28213 m = this.doc._ctm.slice();
28224 pattern = this.doc.ref({
28238 this.doc.page.patterns[this.id] = pattern;
28251 group = this.doc.ref({
28257 resources = this.doc.ref({
28264 form = this.doc.ref({
28268 BBox: [0, 0, this.doc.page.width, this.doc.page.height],
28273 sMask = this.doc.ref({
28279 gstate = this.doc.ref({
28283 this.opacity_id = ++this.doc._opacityCount;
28285 this.doc.page.ext_gstates[name] = gstate;
28295 this.doc.addContent("/" + this.id + " " + op);
28297 this.doc.addContent("/Gs" + this.opacity_id + " gs");
28298 return this.doc._sMasked = true;
28309 function PDFLinearGradient(doc, x1, y1, x2, y2) {
28310 this.doc = doc;
28319 return this.doc.ref({
28329 return new PDFLinearGradient(this.doc, this.x1, this.y1, this.x2, this.y2);
28339 function PDFRadialGradient(doc, x1, y1, r1, x2, y2, r2) {
28340 this.doc = doc;
28351 return this.doc.ref({
28361 return new PDFRadialGradient(this.doc, this.x1, this.y1, this.r1, this.x2, this.y2, this.r2);
28641 SVGPath.apply = function(doc, path) {
28644 return apply(commands, doc);
28748 apply = function(commands, doc) {
28754 runners[_name](doc, c.args);
28761 M: function(doc, a) {
28767 return doc.moveTo(cx, cy);
28769 m: function(doc, a) {
28775 return doc.moveTo(cx, cy);
28777 C: function(doc, a) {
28782 return doc.bezierCurveTo.apply(doc, a);
28784 c: function(doc, a) {
28785 doc.bezierCurveTo(a[0] + cx, a[1] + cy, a[2] + cx, a[3] + cy, a[4] + cx, a[5] + cy);
28791 S: function(doc, a) {
28796 doc.bezierCurveTo(cx - (px - cx), cy - (py - cy), a[0], a[1], a[2], a[3]);
28802 s: function(doc, a) {
28807doc.bezierCurveTo(cx - (px - cx), cy - (py - cy), cx + a[0], cy + a[1], cx + a[2], cy + a[3]);
28813 Q: function(doc, a) {
28818 return doc.quadraticCurveTo(a[0], a[1], cx, cy);
28820 q: function(doc, a) {
28821 doc.quadraticCurveTo(a[0] + cx, a[1] + cy, a[2] + cx, a[3] + cy);
28827 T: function(doc, a) {
28835 doc.quadraticCurveTo(px, py, a[0], a[1]);
28841 t: function(doc, a) {
28849 doc.quadraticCurveTo(px, py, cx + a[0], cy + a[1]);
28853 A: function(doc, a) {
28854 solveArc(doc, cx, cy, a);
28858 a: function(doc, a) {
28861 solveArc(doc, cx, cy, a);
28865 L: function(doc, a) {
28869 return doc.lineTo(cx, cy);
28871 l: function(doc, a) {
28875 return doc.lineTo(cx, cy);
28877 H: function(doc, a) {
28880 return doc.lineTo(cx, cy);
28882 h: function(doc, a) {
28885 return doc.lineTo(cx, cy);
28887 V: function(doc, a) {
28890 return doc.lineTo(cx, cy);
28892 v: function(doc, a) {
28895 return doc.lineTo(cx, cy);
28897 Z: function(doc) {
28898 doc.closePath();
28902 z: function(doc) {
28903 doc.closePath();
28909 solveArc = function(doc, x, y, coords) {
28917 _results.push(doc.bezierCurveTo.apply(doc, bez));
66320 doc = view.document
66325 , save_link = doc.createElementNS("http://www.w3.org/1999/xhtml", "a")
66328 var event = doc.createEvent("MouseEvents");