Index of /php/pmStikkit
Name Last modified Size Description
Parent Directory 15-Aug-2007 11:23 -
pmStikkit-0.1.tar.gz 03-Feb-2007 17:14 2k
NAME
pmStikkit - Simple PHP class to create 'pocketmod' style booklets for
items on www.stikkit.com
SYNOPSIS
include_once("FPDF.php");
include_once("pmPDF.php");
include_once("pmStikkit.php");
$args = array(
'key' => 's33kr3t',
'pps' => 1,
'folds' => 1
);
$pdf = new pmStikkit($args);
$pdf->SetFont('Helvetica');
$pdf->SetFontSize(10);
$pdf->collect("stikkits", array('tags' => 'foo'));
$pdf->collect("todos");
$pdf->Output();
DESCRIPTION
Simple PHP class to create 'pocketmod' style booklets for items on
www.stikkit.com
At the moment, the *only* thing it will do is take an arbitrary amount
of unformatted text (excepting newlines) and render on to multiple
sheets of US letter sized paper to create a nice little "pocketmod"
booklet.
The package will take care of all the bring pagination stuff if your
text span more than one sheet (or 8 pocketmod "pages").
Support for images is on the way.
PACKAGE METHODS
pmStikkit($args=array())
pmStikkit inherits from pmPDF and its constructor will accept all the
same argument in addition to the following :
* key
String.*required*
Your stikkit.com API key.
* pps
Boolean.
"pps" as in start a new "page per stikkit".
Default is false.
Returns a pmStikkit object
OBJECT METHODS
pmPDF subclasses pmPDF so it inherits all its method. In addition it
exposes the following public object methods :
$obj->collect($type, $args=array())
Fetch items from stikkit.com
Valid arguments are :
* type
String. *required*
The chunk of text to add.
* args
Hash.
Returns true or false.
VERSION
0.1
DATE
$Date: 2007/02/03 05:09:39 $
AUTHOR
Aaron Straup Cope <http://www.aaronstraupcope.com/>
REQUIREMENTS
The pmPDF PDF library.
SEE ALSO
* <http://www.stikkit.com/>
* <http://www.aaronland.info/php/pmPDF/>
* <http://www.aaronland.info/weblog/2007/01/24/bacon#pocketnet>
LICENSE
Copyright (c) 2007 Aaron Straup Cope.
This is free software, you may use it and distribute it under the same
terms as Perl itself.