Note: This is a repost video from • How to make printable PDF Invoices in... with no background music and improved audio as requested by many people.
Sorry guys, i wasn't good at video composting. I hope you can enjoy this one.
Welcome to first chapter of FPDF tutorial series.
This series is about how to generate PDF file in PHP.
PDF generation in PHP gave a web-based application abilities to represent a printable, fixed- layout document to millimeter precision.
Such as printable invoices, printable reports, printable manifests, and other printable documents.
In short, PDF generation is a best method to represent a printable document, compared to any other method such as html, which is "dynamic layout" by nature.
The down side is, we cannot alter the produced document and it depends on browser's PDF plugins.
In this chapter, i'm going to show you how to make a PDF invoice in PHP using FPDF class.
You can download fpdf library package then extract it's content to your htdocs directory.
This package contains fpdf php library, example tutorials, and documentation.
FPDF has many methods to make and manipulate PDF content as you can see in its documentation.
but in this chapter, i'm going to explain only the most basic functions necessary to build a PDF page.
In this example, i am going to use portrait, A4 size paper with mm measurement unit.
Source Code : https://bit.ly/3hYdT0F
More tutorial on this series : https://goo.gl/TNqTN4 (PHP PDF Tutorial Series)
Subtitle : English, Bahasa Indonesia