Lines Matching refs:this

55     pdf_add_weblink($this->pdf, $left, $top-$height, $left+$width, $top, $url);
59 pdf_add_locallink($this->pdf,
61 $top-$height - $this->offset ,
63 $top - $this->offset,
69 pdf_circle($this->pdf, $x, $y, $r);
73 pdf_clip($this->pdf);
77 pdf_end_page($this->pdf);
78 pdf_close($this->pdf);
79 pdf_delete($this->pdf);
83 pdf_closepath($this->pdf);
87 pdf_setdash($this->pdf, $x, $y);
92 pdf_set_parameter($this->pdf, "underline", $underline ? "true" : "false");
94 pdf_set_parameter($this->pdf, "overline", $overline ? "true" : "false");
96 pdf_set_parameter($this->pdf, "strikeout", $strikeout ? "true" : "false");
100 pdf_fill($this->pdf);
111 return pdf_findfont($this->pdf, $name, $this->encoding($encoding), $embed);
115 return pdf_get_value($this->pdf, "ascender", $this->findfont($name, $encoding));
119 return -pdf_get_value($this->pdf, "descender", $this->findfont($name, $encoding));
123 return $this->bottom + $this->offset;
129 $pim = pdf_open_image_file($this->pdf, "png", $tmpname, "", 0);
130 pdf_place_image($this->pdf, $pim, $x, $y, $scale);
131 pdf_close_image($this->pdf, $pim);
139 $pim = pdf_open_image_file($this->pdf, "png", $tmpname, "", 0);
141 $this->save();
142 pdf_translate($this->pdf, $x, $y);
143 pdf_scale($this->pdf, $scale_x, $scale_y);
144 pdf_place_image($this->pdf, $pim, 0, 0, 1);
145 $this->restore();
147 pdf_close_image($this->pdf, $pim);
154 $pim = pdf_open_image_file($this->pdf, "png", $tmpname, "", 0);
159 pdf_place_image($this->pdf, $pim, $x, $cy, $scale);
166 pdf_place_image($this->pdf, $pim, $x, $cy, $scale);
170 pdf_close_image($this->pdf, $pim);
177 $pim = pdf_open_image_file($this->pdf, "png", $tmpname, "", 0);
182 pdf_place_image($this->pdf, $pim, $cx, $y, $scale);
189 pdf_place_image($this->pdf, $pim, $cx-$width, $y, $scale);
193 pdf_close_image($this->pdf, $pim);
200 $pim = pdf_open_image_file($this->pdf, "png", $tmpname, "", 0);
207 pdf_place_image($this->pdf, $pim, $cx, $cy, $scale);
218 pdf_place_image($this->pdf, $pim, $cx, $cy, $scale);
229 pdf_place_image($this->pdf, $pim, $cx, $cy, $scale);
240 pdf_place_image($this->pdf, $pim, $cx, $cy, $scale);
246 pdf_close_image($this->pdf, $pim);
251 pdf_lineto($this->pdf, $x, $y);
255 pdf_moveto($this->pdf, $x, $y);
260 if ($this->_status == PDFLIB_STATUS_PAGE_STARTED) {
261 pdf_end_page($this->pdf);
263 pdf_begin_page($this->pdf, mm2pt($this->media->width()), mm2pt($this->media->height()));
266 $this->offset -= $height - $this->offset_delta;
271 $this->offset_delta = 0;
273 pdf_translate($this->pdf, 0, -$this->offset);
277 $this->_status = PDFLIB_STATUS_PAGE_STARTED;
281 $this->OutputDriverGenericPDF();
282 $this->set_pdf_version($version);
284 $this->_currentfont = null;
285 $this->_radiogroups = array();
286 $this->_field_names = array();
288 $this->_status = PDFLIB_STATUS_INITIALIZED;
298 $filename = $this->generate_cpg($encoding_name,
300 pdf_set_parameter($this->pdf,
324 $this->pdf = pdf_new();
327 pdf_set_parameter($this->pdf, "compatibility", $this->get_pdf_version());
335 pdf_set_parameter($this->pdf, "license", PDFLIB_LICENSE);
338 pdf_open_file($this->pdf, $this->get_filename());
341 pdf_set_value($this->pdf, "compress", 0);
345 pdf_set_parameter($this->pdf, "resourcefile", PDFLIB_UPR_PATH);
349 $filename = $this->generate_cpg('koi8-r');
350 pdf_set_parameter($this->pdf, 'Encoding', sprintf('koi8-r=%s', $filename));
354 $g_font_resolver_pdf->setup_ttf_mappings($this->pdf);
356 $pdf = $this->pdf;
360 pdf_set_border_style($this->pdf, "solid", 0);
362 $this->_status = PDFLIB_STATUS_DOCUMENT_STARTED;
366 pdf_rect($this->pdf, $x, $y, $w, $h);
370 pdf_restore($this->pdf);
374 pdf_save($this->pdf);
378 $this->_currentfont = $this->findfont($name, $encoding);
380 pdf_setfont($this->pdf, $this->_currentfont, $size);
394 pdf_setlinewidth($this->pdf, $x);
399 pdf_setcolor($this->pdf, "both", "rgb", $r, $g, $b, 0);
403 pdf_show_xy($this->pdf, $text, $x, $y);
407 pdf_stroke($this->pdf);
411 return pdf_stringwidth($this->pdf, $string, $this->findfont($name, $encoding), $size);
417 $font = $this->findfont('Helvetica', 'iso-8859-1');
418 pdf_setfont($this->pdf, $font, 100);
420 $x = $this->left + $this->width / 2;
421 $y = $this->bottom + $this->height / 2 + $this->offset;
423 pdf_set_value($this->pdf, "textrendering", 1);
424 pdf_translate($this->pdf, $x, $y);
425 pdf_rotate($this->pdf, 60);
426 … pdf_show_xy($this->pdf, $watermark, -pdf_stringwidth($this->pdf, $watermark, $font, 100)/2, -50);