MIOLO26
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe Cached_PDF_Decorator
Diagrama de heranças da classe Cached_PDF_Decorator
CPDF_Adapter Canvas Canvas

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 ()
 

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( $cache_id,
CPDF_Adapter $pdf )

Documentação das funções

◆ add_object()

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:

  • 'add' add to current page only
  • 'all' add to every page from the current one onwards
  • 'odd' add to all odd numbered pages from now on
  • 'even' add to all even numbered pages from now on
  • 'next' add the object to the next page only
  • 'nextodd' add to all odd numbered pages from the next one
  • 'nexteven' add to all even numbered pages from the next one
Veja também
Cpdf::addObject()
Parâmetros
int$object
string$where

Reimplementado de CPDF_Adapter.

◆ circle()

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)

Parâmetros
float$x
float$y
float$r
array$color
float$width
array$style
bool$fillFills the circle if true

Implementa Canvas.

◆ close_object()

close_object ( )

Closes the current 'object'

Veja também
CPDF_Adapter::open_object()

Reimplementado de CPDF_Adapter.

◆ filled_rectangle()

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.

Parâmetros
float$x1
float$y1
float$w
float$h
array$color

Implementa Canvas.

◆ get_cpdf()

get_cpdf ( )

Returns the Cpdf instance

Retorna
Cpdf

Reimplementado de CPDF_Adapter.

◆ get_height()

get_height ( )

Returns the PDF's height in points

Retorna
float

Reimplementado de CPDF_Adapter.

◆ get_messages()

get_messages ( )

Returns logging messages generated by the Cpdf class

Retorna
string

Reimplementado de CPDF_Adapter.

◆ get_page_count()

get_page_count ( )

Returns the total number of pages in the document

Retorna
int

Reimplementado de CPDF_Adapter.

◆ get_page_number()

get_page_number ( )

Returns the current page number

Retorna
int

Reimplementado de CPDF_Adapter.

◆ get_width()

get_width ( )

Returns the PDF's width in points

Retorna
float

Reimplementado de CPDF_Adapter.

◆ image()

image ( $img_url,
$x,
$y,
$w = null,
$h = null )

◆ line()

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).

Parâmetros
float$x1
float$y1
float$x2
float$y2
array$color
float$width
array$style

Implementa Canvas.

◆ new_page()

new_page ( )

Starts a new page

Subsequent drawing operations will appear on the new page.

Reimplementado de CPDF_Adapter.

◆ open_object()

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.

Veja também
CPDF_Adapter::close_object()
CPDF_Adapter::add_object()
Retorna
int

Reimplementado de CPDF_Adapter.

◆ output()

& output ( )

◆ page_text()

page_text ( $x,
$y,
$text,
$font,
$size,
$color = array(0,0,0),
$adjust = 0,
$angle = 0 )

◆ polygon()

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)

Parâmetros
array$points
array$color
float$width
array$style
bool$fillFills the polygon if true

Implementa Canvas.

◆ rectangle()

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)

Parâmetros
float$x1
float$y1
float$w
float$h
array$color
float$width
array$style

Implementa Canvas.

◆ reopen_object()

reopen_object ( )

◆ reopen_serialized_object()

reopen_serialized_object ( $obj)

@access private

Reimplementado de CPDF_Adapter.

◆ serialize_object()

serialize_object ( $id)

@access private

Reimplementado de CPDF_Adapter.

◆ set_page_count()

set_page_count ( $count)

Sets the page count

Parâmetros
int$count

Reimplementado de CPDF_Adapter.

◆ set_page_number()

set_page_number ( $num)

Sets the current page number

Parâmetros
int$num

Reimplementado de CPDF_Adapter.

◆ stream()

stream ( $filename)

◆ text()

text ( $x,
$y,
$text,
$font,
$size,
$color = array(0,0,0),
$adjust = 0,
$angle = 0 )

Documentação dos campos e atributos

◆ $_cache_id

$_cache_id
protected

◆ $_current_page_id

$_current_page_id
protected

◆ $_fonts

$_fonts
protected

◆ $_pdf

$_pdf
protected

A documentação para esta classe foi gerada a partir do seguinte ficheiro: