|
MIOLO25
|
Membros públicos | |
| __construct ($cache_id, CPDF_Adapter $pdf) | |
| get_cpdf () | |
| open_object () | |
| reopen_object () | |
| close_object () | |
| add_object ($object, $where='all') | |
| serialize_object ($id) | |
| reopen_serialized_object ($obj) | |
| get_width () | |
| get_height () | |
| get_page_number () | |
| get_page_count () | |
| set_page_number ($num) | |
| set_page_count ($count) | |
| line ($x1, $y1, $x2, $y2, $color, $width, $style=array()) | |
| rectangle ($x1, $y1, $w, $h, $color, $width, $style=array()) | |
| filled_rectangle ($x1, $y1, $w, $h, $color) | |
| polygon ($points, $color, $width=null, $style=array(), $fill=false) | |
| circle ($x, $y, $r1, $color, $width=null, $style=null, $fill=false) | |
| image ($img_url, $x, $y, $w=null, $h=null) | |
| text ($x, $y, $text, $font, $size, $color=array(0, 0, 0), $adjust=0, $angle=0) | |
| page_text ($x, $y, $text, $font, $size, $color=array(0, 0, 0), $adjust=0, $angle=0) | |
| new_page () | |
| stream ($filename) | |
| & | output () |
| get_messages () | |
Membros públicos herdados de CPDF_Adapter | |
| __construct ($paper="letter", $orientation="portrait") | |
| __destruct () | |
| reopen_object ($object) | |
| stop_object ($object) | |
| line ($x1, $y1, $x2, $y2, $color, $width, $style=array(), $blend="Normal", $opacity=1.0) | |
| rectangle ($x1, $y1, $w, $h, $color, $width, $style=array(), $blend="Normal", $opacity=1.0) | |
| filled_rectangle ($x1, $y1, $w, $h, $color, $blend="Normal", $opacity=1.0) | |
| polygon ($points, $color, $width=null, $style=array(), $fill=false, $blend="Normal", $opacity=1.0) | |
| circle ($x, $y, $r1, $color, $width=null, $style=null, $fill=false, $blend="Normal", $opacity=1.0) | |
| image ($img_url, $img_type, $x, $y, $w, $h) | |
| text ($x, $y, $text, $font, $size, $color=array(0, 0, 0), $adjust=0, $angle=0, $blend="Normal", $opacity=1.0) | |
| add_named_dest ($anchorname) | |
| add_link ($url, $x, $y, $width, $height) | |
| get_text_width ($text, $font, $size, $spacing=0) | |
| get_font_height ($font, $size) | |
| page_text ($x, $y, $text, $font, $size, $color=array(0, 0, 0), $adjust=0, $angle=0, $blend="Normal", $opacity=1.0) | |
| stream ($filename, $options=null) | |
| output ($options=null) | |
Membros públicos herdados de Canvas | |
| text ($x, $y, $text, $font, $size, $color=array(0, 0, 0), $adjust=0) | |
Atributos Protegidos | |
| $_pdf | |
| $_cache_id | |
| $_current_page_id | |
| $_fonts | |
Outros membros herdados | |
Atributos Públicos Estáticos herdados de CPDF_Adapter | |
| static | $PAPER_SIZES |
Membros protegidos herdados de CPDF_Adapter | |
| _set_stroke_color ($color) | |
| _set_fill_color ($color) | |
| _set_line_transparency ($mode, $opacity) | |
| _set_fill_transparency ($mode, $opacity) | |
| _set_line_style ($width, $cap, $join, $dash) | |
| y ($y) | |
| _convert_gif_to_png ($image_url) | |
| _add_page_text () | |
| __construct | ( | $cache_id, | |
| CPDF_Adapter | $pdf ) |
| add_object | ( | $object, | |
| $where = 'all' ) |
Adds a specified 'object' to the document
$object int specifying an object created with CPDF_Adapter::open_object(). $where can be one of:
| int | $object | |
| string | $where |
Reimplementado de CPDF_Adapter.
| circle | ( | $x, | |
| $y, | |||
| $r, | |||
| $color, | |||
| $width = null, | |||
| $style = null, | |||
| $fill = false ) |
Draws a circle at $x,$y with radius $r
See Style::munge_colour() for the format of the colour array. See Cpdf::setLineStyle() for a description of the $style parameter (aka dash)
| float | $x | |
| float | $y | |
| float | $r | |
| array | $color | |
| float | $width | |
| array | $style | |
| bool | $fill | Fills the circle if true |
Implementa Canvas.
| close_object | ( | ) |
| filled_rectangle | ( | $x1, | |
| $y1, | |||
| $w, | |||
| $h, | |||
| $color ) |
Draws a filled rectangle at x1,y1 with width w and height h
See Style::munge_colour() for the format of the colour array.
| float | $x1 | |
| float | $y1 | |
| float | $w | |
| float | $h | |
| array | $color |
Implementa Canvas.
| get_cpdf | ( | ) |
| get_height | ( | ) |
| get_messages | ( | ) |
| get_page_count | ( | ) |
| get_page_number | ( | ) |
| get_width | ( | ) |
| image | ( | $img_url, | |
| $x, | |||
| $y, | |||
| $w = null, | |||
| $h = null ) |
| line | ( | $x1, | |
| $y1, | |||
| $x2, | |||
| $y2, | |||
| $color, | |||
| $width, | |||
| $style = array() ) |
Draws a line from x1,y1 to x2,y2
See Style::munge_colour() for the format of the colour array. See Cpdf::setLineStyle() for a description of the format of the $style parameter (aka dash).
| float | $x1 | |
| float | $y1 | |
| float | $x2 | |
| float | $y2 | |
| array | $color | |
| float | $width | |
| array | $style |
Implementa Canvas.
| new_page | ( | ) |
Starts a new page
Subsequent drawing operations will appear on the new page.
Reimplementado de CPDF_Adapter.
| open_object | ( | ) |
Opens a new 'object'
While an object is open, all drawing actions are recored in the object, as opposed to being drawn on the current page. Objects can be added later to a specific page or to several pages.
The return value is an integer ID for the new object.
Reimplementado de CPDF_Adapter.
| & output | ( | ) |
| page_text | ( | $x, | |
| $y, | |||
| $text, | |||
| $font, | |||
| $size, | |||
| $color = array(0,0,0), | |||
| $adjust = 0, | |||
| $angle = 0 ) |
| polygon | ( | $points, | |
| $color, | |||
| $width = null, | |||
| $style = array(), | |||
| $fill = false ) |
Draws a polygon
The polygon is formed by joining all the points stored in the $points array. $points has the following structure: array(0 => x1, 1 => y1, 2 => x2, 3 => y2, ... );
See Style::munge_colour() for the format of the colour array. See Cpdf::setLineStyle() for a description of the $style parameter (aka dash)
| array | $points | |
| array | $color | |
| float | $width | |
| array | $style | |
| bool | $fill | Fills the polygon if true |
Implementa Canvas.
| rectangle | ( | $x1, | |
| $y1, | |||
| $w, | |||
| $h, | |||
| $color, | |||
| $width, | |||
| $style = array() ) |
Draws a rectangle at x1,y1 with width w and height h
See Style::munge_colour() for the format of the colour array. See Cpdf::setLineStyle() for a description of the $style parameter (aka dash)
| float | $x1 | |
| float | $y1 | |
| float | $w | |
| float | $h | |
| array | $color | |
| float | $width | |
| array | $style |
Implementa Canvas.
| reopen_object | ( | ) |
| reopen_serialized_object | ( | $obj | ) |
@access private
Reimplementado de CPDF_Adapter.
| serialize_object | ( | $id | ) |
@access private
Reimplementado de CPDF_Adapter.
| set_page_count | ( | $count | ) |
| set_page_number | ( | $num | ) |
| stream | ( | $filename | ) |
| text | ( | $x, | |
| $y, | |||
| $text, | |||
| $font, | |||
| $size, | |||
| $color = array(0,0,0), | |||
| $adjust = 0, | |||
| $angle = 0 ) |
|
protected |
|
protected |
|
protected |
|
protected |