+ All Categories
Home > Technology > Introduction to FPDF

Introduction to FPDF

Date post: 12-Jul-2015
Category:
Upload: jeremy-curcio
View: 3,757 times
Download: 9 times
Share this document with a friend
28
Introduction to FPDF Baltimore PHP - July 17, 2013 Presented By: Jeremy Curcio Twitter: @Jeremy1026 Web: jcurcio.com
Transcript
Page 1: Introduction to FPDF

Introduction to FPDF

Baltimore PHP - July 17, 2013Presented By: Jeremy Curcio

Twitter: @Jeremy1026Web: jcurcio.com

Page 2: Introduction to FPDF

About Me

• My name is Jeremy Curcio

• Born and raised Baltimorean

• Working with PHP for about 7 years

• Currently working at Physicians Management Group

Page 3: Introduction to FPDF

About FPDF

• First released in 2001

• Written by Olivier Plathey

• Completely free to use

• Requires no extensions*

• zlib is required to activate compression

• GD is required for GIF support

Page 4: Introduction to FPDF

Overview• www.fpdf.org/

• Download (ZIP / TAR)

• Tutorials

• Documentation

• User Forum

Page 5: Introduction to FPDF

Abilities

• Page set up customization

• Set document meta data

• Title

• Author

• Keywords

• Supports many languages

• Automatic page breaks

• Automatic line breaks

• Text justification

• Color management

• Links

• Image support

Page 6: Introduction to FPDF

Outputting Final PDF

• Can output finished PDF to

• Browser: $pdf->Output(‘invoice.php’, ‘I’);

• Forced Download: $pdf->Output(‘invoice.php’, ‘D’)

• Save to Server: $pdf->Output(‘pdfs/invoice.php’, ‘F’)

Page 7: Introduction to FPDF

Commonly Used API MethodsAPI Methods

• FPDF

• Constructor method

• FPDF([string orientation [, string unit [. mixed size]]])

• Cell

• Cell(float w [, float h [, string txt [, mixed border [, int ln [, string align [, boolean fill [, mixed link]]]]]]]

Page 8: Introduction to FPDF

Commonly Used API MethodsAPI Methods• Multiline Cell

• MultiCell(float w, float h, string txt[, mixed border [, string align [, boolean fill]]])

• Image

• Image(string file[, float x [, float y [, float w [, float h [, string type [, mixed link]]]]]])

Page 9: Introduction to FPDF

Commonly Used API MethodsAPI Methods• Line Break

• Ln([float h])

• Set Font

• SetFont(string family [, string style [, float size]])

• Set XY

• SetXY(float x, float y)

Page 10: Introduction to FPDF

Creating The PDF

Page 11: Introduction to FPDF
Page 12: Introduction to FPDF
Page 13: Introduction to FPDF
Page 14: Introduction to FPDF
Page 15: Introduction to FPDF
Page 16: Introduction to FPDF
Page 17: Introduction to FPDF
Page 18: Introduction to FPDF
Page 19: Introduction to FPDF
Page 20: Introduction to FPDF
Page 21: Introduction to FPDF
Page 22: Introduction to FPDF

Other Capabilities

• Headers and Footers

• Links

• Color

• Add existing documents

Page 23: Introduction to FPDF

Extendability

• Many extensions to FPDF are available

• Bookmark support

• Barcodes

• Circles/Ellipses

• Watermark

• Plus many more

Page 24: Introduction to FPDF

Final Document and Thoughtsand Thoughts

• Easy to make

• Highly versatile

• Hugely customizable

Page 25: Introduction to FPDF

Questions?

Page 26: Introduction to FPDF

Anyone have a printer? so i can get Tim a hard copy

before we leave?

Page 27: Introduction to FPDF

Questions?

Page 28: Introduction to FPDF

Introduction to FPDF

Baltimore PHP - July 17, 2013 Presented By: Jeremy Curcio

Twitter: @Jeremy1026Web: jcurcio.com


Recommended