menu

Adianti Solutions

API

Adianti, Framework, PHP, MVC, Active record, Front controller, IDE, RAD, Web, multiplataforma, geração de código, desenvolvimento rápido, relatórios, formulários, listagens, datagrids, gráficos, banco de dados, padrões de projeto, design patterns API do Adianti Framework.
API Docs
code
Selecione a classe

Class AdiantiPDFDesigner

Description

FPDF Adapter that parses XML files from Adianti Framework

Located in /wrapper/AdiantiPDFDesigner.php (line 18)

FPDF
   |
   --AdiantiPDFDesigner
Method Summary
__construct ([$orientation = 'P'], [$format = 'a4'], [$unit = 'pt'])
closeTag ($tag)
ellipse ($x, $y, $rx, $ry, [$style = 'D'])
fromXml ($filename)
gotoAnchorX ($anchor_name)
gotoAnchorXY ($anchor_name)
gotoAnchorY ($anchor_name)
loadElements ($elements)
openTag ($tag, $attr, $x)
putLink ($URL, $txt)
replace ($mark, $text)
save ($output)
setDrawColorRGB ($color)
setFillColorRGB ($color)
setFontColorRGB ($color)
setStyle ($tag, $enable)
writeAtAnchor ($anchor_name, $text)
writeHTML ($x, $y, $html)
Methods
Constructor __construct (line 36)

Constructor method

  • author: Pablo Dall'Oglio
  • access: public
__construct ([$orientation = 'P'], [$format = 'a4'], [$unit = 'pt'])
  • $orientation: Page orientation
  • $format: Page format
  • $unit
closeTag (line 410)

Close Html TAG

  • author: Azeem Abbas (contributor of fpdf.org)
  • access: public
closeTag ($tag)
  • $tag: Tag
ellipse (line 292)

Draws an ellipse

  • author: Olivier Plathey
  • access: public
ellipse ($x, $y, $rx, $ry, [$style = 'D'])
  • $x: X
  • $y: Y
  • $rx: X Ray
  • $ry: Y Ray
  • $style: Line Style
fromXml (line 63)

Load designed elements from XML

  • author: Pablo Dall'Oglio
  • access: public
fromXml ($filename)
  • $filename: XML file location
generate (line 205)

Generate one PDF page with the parsed elements

  • author: Pablo Dall'Oglio
  • access: public
generate ()
gotoAnchorX (line 143)

Put the cursor at the anchor X position

  • return: if the anchor exists
  • author: Pablo Dall'Oglio
  • access: public
gotoAnchorX ($anchor_name)
  • $anchor_name: Anchor name
gotoAnchorXY (line 122)

Put the cursor at the anchor XY position

  • return: if the anchor exists
  • author: Pablo Dall'Oglio
  • access: public
gotoAnchorXY ($anchor_name)
  • $anchor_name: Anchor name
gotoAnchorY (line 161)

Put the cursor at the anchor Y position

  • return: if the anchor exists
  • author: Pablo Dall'Oglio
  • access: public
gotoAnchorY ($anchor_name)
  • $anchor_name: Anchor name
loadElements (line 98)

Load Elements

  • author: Pablo Dall'Oglio
  • access: public
loadElements ($elements)
  • $elements: Elements (shapes) to load
openTag (line 387)

Open Html TAG

  • author: Azeem Abbas (contributor of fpdf.org)
  • access: public
openTag ($tag, $attr, $x)
  • $tag: Tag
  • $attr: Tag attributes
  • $x: X position
putLink (line 453)

Put link

  • author: Azeem Abbas (contributor of fpdf.org)
  • access: public
putLink ($URL, $txt)
  • $URL
  • $txt
replace (line 196)

Replace a piece of {text}

  • author: Pablo Dall'Oglio
  • access: public
replace ($mark, $text)
  • $mark: piece to be replaced
  • $text: new content
save (line 578)

Saves the PDF

  • author: Pablo Dall'Oglio
  • access: public
save ($output)
  • $output: Output path
setDrawColorRGB (line 519)

Changes the draw color

  • author: Pablo Dall'Oglio
  • access: public
setDrawColorRGB ($color)
  • $color: Color in RGB
setFillColorRGB (line 508)

Changes the fill color

  • author: Pablo Dall'Oglio
  • access: public
setFillColorRGB ($color)
  • $color: Color in RGB
setFontColorRGB (line 494)

Changes the color

  • author: Pablo Dall'Oglio
  • access: public
setFontColorRGB ($color)
  • $color: Color in RGB
setLocale (line 466)

Change PDF locale

  • author: Pablo Dall'Oglio
  • access: public
setLocale ()
setStyle (line 429)

Set Style

  • author: Azeem Abbas (contributor of fpdf.org)
  • access: public
setStyle ($tag, $enable)
  • $tag: Tag
  • $enable: Enable
unsetLocale (line 484)

Back to the old locale

  • author: Pablo Dall'Oglio
  • access: public
unsetLocale ()
writeAtAnchor (line 180)

Write at the anchor position

  • return: if the anchor exists
  • author: Pablo Dall'Oglio
  • access: public
writeAtAnchor ($anchor_name, $text)
  • $anchor_name: Anchor name
  • $text: Text to write
writeHTML (line 333)

Write HTML

  • author: Azeem Abbas (contributor of fpdf.org)
  • access: public
writeHTML ($x, $y, $html)
  • $x: X
  • $y: Y
  • $html: HTML