Converters
[ class tree: Converters ] [ index: Converters ] [ all elements ]

Class: phpdocpdf

Source Location: /PhpDocumentor-1.5.0a1/phpDocumentor/Converters/PDF/default/class.phpdocpdf.php

Class Overview

Cpdf
   |
   --Cezpdf
      |
      --phpdocpdf



Author(s):

Version:

  • 009 (versioning is linked to class.pdf.php) released under a public domain licence.

Variables

Methods


Inherited Variables

Inherited Methods

Class: Cezpdf

Cezpdf::Cezpdf()
Cezpdf::alink()
Cezpdf::execTemplate()
Cezpdf::ezColumnsStart()
Cezpdf::ezColumnsStop()
Cezpdf::ezGetCurrentPageNumber()
Cezpdf::ezImage()
Cezpdf::ezInsertMode()
Cezpdf::ezNewPage()
Cezpdf::ezOutput()
Cezpdf::ezProcessText()
Cezpdf::ezPRVTaddPageNumbers()
Cezpdf::ezPRVTcleanUp()
Cezpdf::ezPrvtGetTextWidth()
Cezpdf::ezPRVTpageNumberSearch()
Cezpdf::ezPrvtTableColumnHeadings()
Cezpdf::ezPrvtTableDrawLines()
Cezpdf::ezSetCmMargins()
Cezpdf::ezSetDy()
Cezpdf::ezSetMargins()
Cezpdf::ezSetY()
Cezpdf::ezStartPageNumbers()
Cezpdf::ezStopPageNumbers()
Cezpdf::ezStream()
Cezpdf::ezTable()
Cezpdf::ezText()
Cezpdf::ezWhatPageNumber()
Cezpdf::ilink()
Cezpdf::loadTemplate()
Cezpdf::uline()

Class: Cpdf

Cpdf::Cpdf()
class constructor
Cpdf::addDestination()
create a labelled destination within the document
Cpdf::addImage()
add an image into the document, from a GD object
Cpdf::addInfo()
add content to the documents info object
Cpdf::addInternalLink()
add a link in the document to an internal destination (ie. within the document)
Cpdf::addJpegFromFile()
add a JPEG image into the document, from a file
Cpdf::addLink()
add a link in the document to an external URL
Cpdf::addMessage()
used to add messages for use in debugging
Cpdf::addObject()
after an object has been created, it wil only show if it has been added, using this function.
Cpdf::addPngFromFile()
add a PNG image into the document, from a file
Cpdf::addText()
add text to the document, at a specified location, size and angle on the page
Cpdf::addTextWrap()
add text to the page, but ensure that it fits within a certain width if it does not fit then put in as much as possible, splitting at word boundaries and return the remainder.
Cpdf::ARC4()
ARC4 encrypt a text string
Cpdf::ARC4_init()
initialize the ARC4 encryption
Cpdf::checkAllHere()
should be used for internal checks, not implemented as yet
Cpdf::closeObject()
close an object
Cpdf::curve()
draw a bezier curve based on 4 control points
Cpdf::ellipse()
draw an ellipse note that the part and filled ellipse are just special cases of this function
Cpdf::encryptInit()
initialize the encryption for processing a particular object
Cpdf::filledEllipse()
draw a filled ellipse
Cpdf::filledRectangle()
a filled rectangle, note that it is the width and height of the rectangle which are the secondary paramaters, not
Cpdf::getFirstPageId()
function for the user to find out what the ID is of the first page that was created during startup - useful if they wish to add something to it later.
Cpdf::getFontDecender()
return the font decender, this will normally return a negative number
Cpdf::getFontHeight()
return the height in units of the current font in the given size
Cpdf::getTextWidth()
calculate how wide a given text string will be on a page, at a given size.
Cpdf::line()
draw a line from one set of coordinates to another
Cpdf::md5_16()
calculate the 16 byte version of the 128 bit md5 digest of the string
Cpdf::newPage()
add a new page to the document
Cpdf::openHere()
specify where the document should open when it first starts
Cpdf::openObject()
make a loose object, the output will go into this object, until it is closed, then will revert to the current one.
Cpdf::output()
return the pdf stream as a string returned from the function
Cpdf::o_action()
an action object, used to link to URLS initially
Cpdf::o_annotation()
an annotation object, this will add an annotation to the current page.
Cpdf::o_catalog()
define the document catalog, the overall controller for the document
Cpdf::o_contents()
the contents objects hold all of the content which appears on pages
Cpdf::o_destination()
destination object, used to specify the location for the user to jump to, presently on opening
Cpdf::o_encryption()
encryption object.
Cpdf::o_font()
an object to hold the font description
Cpdf::o_fontDescriptor()
a font descriptor, needed for including additional fonts
Cpdf::o_fontEncoding()
the font encoding
Cpdf::o_image()
an image object, will be an XObject in the document, includes description and data
Cpdf::o_info()
define the document information
Cpdf::o_outlines()
define the outlines in the doc, empty for now
Cpdf::o_page()
a page object, it also creates a contents object to hold its contents
Cpdf::o_pages()
object which is a parent to the pages in the document
Cpdf::o_procset()
the document procset, solves some problems with printing to old PS printers
Cpdf::o_viewerPreferences()
set the viewer preferences
Cpdf::partEllipse()
draw a part of an ellipse
Cpdf::polygon()
draw a polygon, the syntax for this is similar to the GD polygon command
Cpdf::rectangle()
draw a rectangle, note that it is the width and height of the rectangle which are the secondary paramaters, not
Cpdf::reopenObject()
open an existing object for editing
Cpdf::restoreState()
restore a previously saved state
Cpdf::saveState()
this will be called at a new page to return the state to what it was on the
Cpdf::selectFont()
if the font is not loaded then load it and make the required object
Cpdf::setColor()
sets the colour for fill operations
Cpdf::setEncryption()
set the encryption of the document can be used to turn it on and/or set the passwords which it will have.
Cpdf::setFontFamily()
define font families, this is used to initialize the font families for the default fonts and for the user to add new ones for their fonts. The default bahavious can be overridden should that be desired.
Cpdf::setLineStyle()
this sets the line drawing style.
Cpdf::setPreferences()
set the viewer preferences of the document, it is up to the browser to obey these.
Cpdf::setStrokeColor()
sets the colour for stroke operations
Cpdf::stopObject()
stop an object from appearing on pages from this point on
Cpdf::stream()
output the pdf code, streaming it to the browser
Cpdf::transaction()
a few functions which should allow the document to be treated transactionally.

Class Details

[line 50]
  • Author: Wayne Munro, R&OS Ltd, http://www.ros.co.nz/pdf
  • Version: 009 (versioning is linked to class.pdf.php) released under a public domain licence.


[ Top ]


Class Variables

$converter =

[line 57]


Type:   mixed


[ Top ]

$font_dir =  false

[line 55]


Type:   mixed


[ Top ]

$indents = array()

[line 54]


Type:   mixed


[ Top ]

$indexContents = array()

[line 53]


Type:   mixed


[ Top ]

$listType =  'ordered'

[line 59]


Type:   mixed


[ Top ]

$reportContents = array()

[line 52]


Type:   mixed


[ Top ]

$set_pageNumbering =  false

[line 56]


Type:   mixed


[ Top ]



Method Detail

phpdocpdf (Constructor)   [line 62]

phpdocpdf phpdocpdf( &$pdfconverter, $fontdir, [ $paper = 'a4'], [ $orientation = 'portrait'])


Parameters:

   &$pdfconverter   — 
   $fontdir   — 
   $paper   — 
   $orientation   — 

[ Top ]

addMessage   [line 263]

void addMessage( $message)


Overrides Cpdf::addMessage() (used to add messages for use in debugging)

Parameters:

   $message   — 

[ Top ]

bullet   [line 322]

void bullet( $Data)

  • Author: Murray Shields

Parameters:

   $Data   — 

[ Top ]

dots   [line 175]

void dots( $info)


Parameters:

   $info   — 

[ Top ]

ezNewPage   [line 341]

void ezNewPage( [ $debug = false])


Overrides Cezpdf::ezNewPage() (parent method not documented)

Parameters:

   $debug   — 

[ Top ]

ezOutput   [line 232]

void ezOutput( [ $debug = false], $template)


Overrides Cezpdf::ezOutput() (parent method not documented)

Parameters:

   $debug   — 
   $template   — 

[ Top ]

ezProcessText   [line 270]

void ezProcessText( $text)


Overrides Cezpdf::ezProcessText() (parent method not documented)

Parameters:

   $text   — 

[ Top ]

ezText   [line 215]

void ezText( $text, [ $size = 0], [ $options = array()], [ $test = 0])

  • Uses: PDFParser - extracts all meta-tags and processes text for output

Overrides Cezpdf::ezText() (parent method not documented)

Parameters:

   $text   — 
   $size   — 
   $options   — 
   $test   — 

[ Top ]

getColor   [line 72]

void getColor( )

This really should be in the parent class

[ Top ]

getYPlusOffset   [line 258]

void getYPlusOffset( $offset)


Parameters:

   $offset   — 

[ Top ]

indent   [line 300]

void indent( $info)


Parameters:

   $info   — 

[ Top ]

index   [line 142]

void index( $info)


Parameters:

   $info   — 

[ Top ]

IndexLetter   [line 152]

void IndexLetter( $info)


Parameters:

   $info   — 

[ Top ]

orderedBullet   [line 336]

void orderedBullet( $info)


Parameters:

   $info   — 

[ Top ]

rf   [line 132]

void rf( $info)


Parameters:

   $info   — 

[ Top ]

setColorArray   [line 77]

void setColorArray( $color)


Parameters:

   $color   — 

[ Top ]

setHTMLColor   [line 105]

void setHTMLColor( $color)


Parameters:

   $color   — 

[ Top ]

setupTOC   [line 225]

void setupTOC( )


[ Top ]

textcolor   [line 111]

void textcolor( $info)


Parameters:

   $info   — 

[ Top ]

validHTMLColor   [line 100]

void validHTMLColor( $color)


Parameters:

   $color   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:50:10 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.