Lines Matching refs:this

19     $this->OutputDriverGenericPS($image_encoder);
23 …$this->write(sprintf("[ /Rect [ %.2f %.2f %.2f %.2f ] /Action << /Subtype /URI /URI (%s) >> /Borde…
24 $x, $y, $x+$w, $y-$h, $this->_string($target)));
28 …$this->write(sprintf("[ /Rect [ %.2f %.2f %.2f %.2f ] /Page %d /View [ /XYZ null %.2f null ] /Bord…
33 $this->moveto($x, $y);
34 $this->write(sprintf("%.2f %.2f %.2f 0 360 arc\n", $x, $y, $r));
38 $this->write("clip newpath\n");
42 $this->_terminate_output();
43 fclose($this->data);
47 $this->write("closepath\n");
51 $this->write(sprintf("[%.2f %.2f] 0 setdash\n", $x, $y));
55 $this->underline = $underline;
56 $this->overline = $overline;
57 $this->linethrough = $linethrough;
61 $this->write("fill\n");
65 $font =& $this->font_factory->get_type1($name, $encoding);
67 $this->error_message .= $this->font_factory->error_message();
72 if (!isset($this->used_encodings[$encoding])) {
73 $this->used_encodings[$encoding] = true;
76 $this->_write_document_prolog($manager->get_ps_encoding_vector($encoding));
77 $this->_write_document_prolog("\n");
81 if (!isset($this->found_fonts[$fontname])) {
82 $this->found_fonts[$fontname] = true;
84 $this->_write_document_prolog("/$fontname /$name $encoding findfont-enc def\n");
93 $font = $this->_findfont($name, $encoding);
102 $font = $this->_findfont($name, $encoding);
109 return $this->bottom + $this->offset;
118 $image_encoder = $this->get_image_encoder();
119 $id = $image_encoder->auto($this, $image, $size_x, $size_y, $tcolor, $image, $mask);
122 $this->moveto($x, $y);
123 $this->write(sprintf("%.2f %.2f %s %s {%s} %d %d image-create image-show\n",
134 $image_encoder = $this->get_image_encoder();
135 $id = $image_encoder->auto($this, $image, $size_x, $size_y, $tcolor, $image, $mask);
138 $this->moveto($x, $y);
139 $this->write(sprintf("%.2f %.2f %s %s {%s} %d %d image-create image-show\n",
150 $image_encoder = $this->get_image_encoder();
151 $id = $image_encoder->auto($this, $image, $size_x, $size_y, $tcolor, $image, $mask);
154 …$this->write(sprintf("%.2f %.2f %.2f %.2f %.2f %.2f %.2f %s %s {%s} %d %d image-create image-show-…
164 $image_encoder = $this->get_image_encoder();
165 $id = $image_encoder->auto($this, $image, $size_x, $size_y, $tcolor, $image, $mask);
168 …$this->write(sprintf("%.2f %.2f %.2f %.2f %.2f %.2f %.2f %s %s {%s} %d %d image-create image-show-…
178 $image_encoder = $this->get_image_encoder();
179 $id = $image_encoder->auto($this, $image, $size_x, $size_y, $tcolor, $image, $mask);
182 …$this->write(sprintf("%.2f %.2f %.2f %.2f %.2f %.2f %.2f %.2f %.2f %s %s {%s} %d %d image-create …
193 $this->write($data);
198 $this->write($data);
202 if ($this->current_page > 0) {
203 $this->write("showpage\n");
206 $this->offset -= $height - $this->offset_delta;
211 $this->offset_delta = 0;
213 $this->write(sprintf("%%%%Page: %d %d\n", $this->current_page + 1, $this->current_page + 1));
214 $this->write("%%BeginPageSetup\n");
215 $this->write(sprintf("initpage\n"));
216 $this->write(sprintf("0 %.2f translate\n", -$this->offset));
217 $this->write("0 0 0 setrgbcolor\n");
218 $this->write("%%EndPageSetup\n");
226 $this->media =& $media;
227 $this->data = fopen($this->get_filename(), "wb");
230 $this->found_fonts = array();
232 $this->used_encodings = array();
234 $this->overline = false;
235 $this->underline = false;
236 $this->linethrough = false;
239 $this->font_factory =& new FontFactory;
241 $this->_document_body = '';
242 $this->_document_prolog = '';
244 $this->status = FASTPS_STATUS_DOCUMENT_INITIALIZED;
248 $this->write("grestore\n");
252 $this->write("gsave\n");
258 $this->fontsize = $size;
259 $this->currentfont = $this->_findfont($name, $encoding);
261 if (is_null($this->currentfont)) { return null; };
263 $this->write(sprintf("%s %.2f scalefont setfont\n", $this->currentfont->name(), $size));
270 $this->write($data);
275 $this->write($data);
280 $this->moveto($x, $y);
281 $this->write("(".$this->_string($text).") show\n");
284 $width = Font::points($this->fontsize, $this->currentfont->stringwidth($text));
285 if ($this->overline) { $this->_show_overline($x, $y, $width, $this->fontsize); };
286 if ($this->underline) { $this->_show_underline($x, $y, $width, $this->fontsize); };
287 if ($this->linethrough) { $this->_show_linethrough($x, $y, $width, $this->fontsize); };
291 $font =& $this->font_factory->get_type1($name, $encoding);
294 $this->error_message .= $this->font_factory->error_message();
303 $this->write("stroke\n");
307 if ($this->status == FASTPS_STATUS_DOCUMENT_INITIALIZED) {
308 $this->_start_output();
311 $this->_document_body .= $string;
315 $this->_document_prolog .= $string;
319 $this->setlinewidth($ut);
320 $this->moveto($x, $y + $up);
321 $this->lineto($x+$width, $y + $up);
322 $this->stroke();
326 $up = Font::points($this->fontsize, $this->currentfont->underline_position());
327 $ut = Font::points($this->fontsize, $this->currentfont->underline_thickness());
329 $this->_show_line($x, $y, $width, $height, $up, $ut);
333 $up = Font::points($this->fontsize, $this->currentfont->overline_position());
334 $ut = Font::points($this->fontsize, $this->currentfont->underline_thickness());
336 $this->_show_line($x, $y, $width, $height, $up, $ut);
340 $up = Font::points($this->fontsize, $this->currentfont->linethrough_position());
341 $ut = Font::points($this->fontsize, $this->currentfont->underline_thickness());
343 $this->_show_line($x, $y, $width, $height, $up, $ut);
347 $this->status = FASTPS_STATUS_OUTPUT_STARTED;
361 $header = preg_replace("/##PAGES##/", $this->expected_pages, $header);
363 $header = preg_replace("/##BBOX##/", $this->media->to_bbox(), $header);
364 $header = preg_replace("/##MEDIA##/", $this->media->to_ps(), $header);
366 $header = preg_replace("/##PROLOG##/", $this->_document_prolog, $header);
368 fwrite($this->data, $header);
369 fwrite($this->data, "\n");
370 fwrite($this->data, $this->_document_body);
373 fwrite($this->data, $footer);