Download - Introduction to FPDF - DC PHP
![Page 1: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/1.jpg)
Introduction to FPDF
DC PHP - August 14, 2013Presented By: Jeremy Curcio
Twitter: @Jeremy1026Web: jcurcio.com
![Page 2: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/2.jpg)
Sorry
![Page 3: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/3.jpg)
About Me
•My name is Jeremy Curcio
•Born and raised Baltimorean
•Or Baltimoron
•Working with PHP for about 7 years
•Currently employeed with at TapFury
![Page 4: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/4.jpg)
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 5: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/5.jpg)
Overview•www.fpdf.org/
•Download (ZIP / TAR)
• Tutorials
•Documentation
•User Forum
![Page 6: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/6.jpg)
Abilities
• Automatic page breaks
• Automatic line breaks
• Text justification
• Color management
• Links
• Image support
• Page set up customization
• Set document meta data
• Title
• Author
• Keywords
• Supports many languages
![Page 7: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/7.jpg)
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 8: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/8.jpg)
Commonly Used API 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 9: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/9.jpg)
Commonly Used API 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 10: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/10.jpg)
Commonly Used API Methods
•Line Break
•Ln([float h])
•Set Font
•SetFont(string family [, string style [, float size]])
•Set XY
•SetXY(float x, float y)
![Page 11: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/11.jpg)
Creating The PDF
![Page 12: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/12.jpg)
![Page 13: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/13.jpg)
![Page 14: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/14.jpg)
![Page 15: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/15.jpg)
![Page 16: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/16.jpg)
![Page 17: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/17.jpg)
![Page 18: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/18.jpg)
![Page 19: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/19.jpg)
![Page 20: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/20.jpg)
![Page 21: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/21.jpg)
![Page 22: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/22.jpg)
![Page 23: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/23.jpg)
Other Capabilities
•Headers and Footers
•Links
•Color
•Add existing documents
![Page 24: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/24.jpg)
Extendability•Many extensions to FPDF are
available
•Bookmark support
•Barcodes
•Circles/Ellipses
•Watermark
•Plus many more
![Page 25: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/25.jpg)
Final Document and Thoughts
•Easy to make
•Highly versatile
•Hugely customizable
![Page 26: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/26.jpg)
Questions?
![Page 27: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/27.jpg)
Anyone have a printer? so i can get Sandy a hard copy before we leave?
![Page 28: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/28.jpg)
Questions?
![Page 29: Introduction to FPDF - DC PHP](https://reader034.vdocuments.us/reader034/viewer/2022052205/5588ffecd8b42a3b708b4576/html5/thumbnails/29.jpg)
Introduction to FPDF
DC PHP - August 14, 2013 Presented By: Jeremy Curcio
Twitter: @Jeremy1026Web: jcurcio.com