Guia Pdf Programacion Php

Páginas: 33 (8194 palabras) Publicado: 10 de octubre de 2012
PHP Pdf Creation
Module-free creation of Pdf documents
from within PHP
developed by R&OS Ltd
http://www.ros.co.nz/pdf
http://sourceforge.net/projects/pdf-php
version 0.09

R&OS
http://www.ros.co.nz

http://ros.co.nz/pdf - http://www.sourceforge.net/projects/pdf-php

Contents
Introduction
Changes
version 009
version 008
version 007
version 006
version 005
version 004
notesfrom version 003

Use
Extensions
EZPDF Class Extension
Cezpdf
ezSetMargins
ezSetCmMargins
ezNewPage
ezInsertMode
ezSetY
ezSetDy
ezTable
ezText
ezImage
ezStartPageNumbers
ezWhatPageNumber
ezStopPageNumbers
ezOutput
ezStream
ezColumnsStart
ezColumnsStop
inline codes

Base Class Functions
addText
setColor
setStrokeColor
setLineStyle
line
curve
ellipse
partEllipsepolygon
filledRectangle
rectangle
newPage
getFirstPageId
stream
getFontHeight
getFontDecender

http://ros.co.nz/pdf - http://www.sourceforge.net/projects/pdf-php

1
1
1
1
2
2
3
3
3

3
3
5
5
6
6
6
6
6
6
7
10
11
12
13
14
14
14
14
15
15

17
17
17
17
18
18
18
19
19
20
20
20
21
21
21
21
21

getTextWidth
addTextWrap
saveState
restoreStateopenObject
reopenObject
closeObject
addObject
stopObject
addInfo
setPreferences
addImage
addJpegFromFile
addPngFromFile
output
openHere
selectFont
setFontFamily
setEncryption
addLink
addInternalLink
addDestination
transaction

Misc

22
22
22
22
22
22
23
23
23
23
23
23
24
24
24
24
25
26
27
27
27
28
28

29
Callback functions
Units

FAQs

29
30

32Whats all this crap I see, my page is broken ?
What page sizes can I use ?
What is this Call to undefined function: imagecreatefromjpeg() error about ?
Does this work with accented characters ?
How can I write the PDF file to a static file on the webserver?
How do I do Hello World?
Can I put the fonts directory somewhere else ?
Can I see the code behind the online demo ?
What values can Igive for the setPreferences method labels?
my accented characters do not work with full justification?
I just get a blank page?
So what are the page sizes?
why am I getting this array_search() function missing?
I get an error which says bad value for BBOX in font!
How should I do debugging ?!
Is there a code example for writing the file to disk and redirecting?
How do I get the Eurocharacter to show in my text?
How do I get the symbolic fonts (eg zapfdingbats) working?
How do I make a table from my database information?

http://ros.co.nz/pdf - http://www.sourceforge.net/projects/pdf-php

32
32
32
33
33
33
34
34
35
36
36
37
37
37
37
38
39
40
40

Introduction
This class is designed to provide a non-module, non-commercial alternative to dynamicallycreating
pdf documents from within PHP.
Obviously this will not be quite as quick as the module alternatives, but it is surprisingly fast, this
demonstration page is almost a worst case due to the large number of fonts which are displayed.
There are a number of features which can be within a Pdf document that it is not at the moment
possible to use with this class, but I feel that it is usefulenough to be released.
This document describes the possible useful calls to the class, the readme.php file (which will create
this pdf) should be sufficient as an introduction.
Note that this document was generated using the demo script 'readme.php' which came with this
package.

Changes
version 009
- support for underlining in the ezPdf class (but only in the base class functions using thecallback
function directly).
- improvements to the underlining of the links, so that it is sized and positioned better, will work with
angled text now.
- automatic column support.
- some improvements to the table functions. Can set row and column gaps. The table will not now
split rows across pages by default.
- addition of transaction control support to the base class (this is quite useful,...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Guia programacion en php
  • Programación PHP
  • programacion php
  • Programacion php
  • Programación en php
  • programacion PHP
  • Programación Php
  • PROGRAMACION CON PHP

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS