![]() Note : Cell function background fill option must be set to true Adding font colour by SetTextColor() AddPage() $pdf->Output('my_file.pdf','D') Output with background color is here → Try to change the script by adding backgroud color like this. ![]() In the above code we have used cell to add our text to the pdf file with border, alignment, background fill and a link. String with border, alignment, background fill in PDF → $pdf->Output('my_file.pdf','I') // send to browser and display ![]() ?> Check the output to display the string in PDF →Ībove code will display the string, we can manage this output by adding border, alignment, colour, link etc. $pdf->Output('my_file.pdf','I') // Send to browser and display Run this code, you are ready with your first pdf file created from FPDF class. ![]() Installation and generating PDF document in PHP using FPDF class and showing Hello World ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |