Questions tagged [fpdf]

This PHP class provides developers with the capability to create PDF files using only native PHP code, eliminating the need for the PDFlib library.

Converting an HTML table into a visual image

I've encountered an issue. My task involves transferring an HTML table to a PDF using fpdf. Is there a way to transform an HTML table into an image (via URL link)? ...

Adjusting the space between the fifth and sixth cell in PHP using FPDF

I'm having trouble generating this specific report." My goal is to achieve a layout similar to this sample: https://i.stack.imgur.com/ADc89.png However, the actual result I'm getting is more like this: https://i.stack.imgur.com/eSbER.png I n ...

Output the page numbers of the PDF starting from the initial page and configure the footer

I've encountered an issue with my code. The first page is not numbered and the footer I have set appears as the header. Any suggestions on how to fix this? $full_name = 'custom_worksheets/' . $sheet_name . '.pdf'; $pdf = new FPDI('P', 'mm ...

Can I incorporate FontAwesome font into fpdf?

Is there a way to incorporate fontawesome into PDF files? I currently generate my PDFs using the PHP library FPDF and font embedding, but I am having trouble getting it to work. I found this tool that generates AFM files: Despite trying to use fontawesom ...

Is there a way to generate new cells using FPDF in PHP even if the quantity of name attributes within the DOM remains uncertain?

I am currently working on an invoice system that allows users to generate new input fields by clicking the "ADD" button. At the end of the document, there is a "GET PDF" button which generates a PDF copy of the invoice once it's ready. To achieve this fu ...

Creating PDF files with PHP

When attempting to generate a PDF in PHP using the code below, the file opens with a "corrupted or damaged file" error: $FileName = date("d-m-y") . '.pdf'; $Content = ""; # Title of the CSV $Content = "Name,Address,Age,Phone "; # Fill data in the CS ...

Decoding HTML entities with FPDF using the tFPDF extension

I am currently utilizing tFPDF to create a PDF document. The PHP file is encoded in UTF-8 format. I am aiming for © to be displayed as the copyright symbol in the generated PDF. I have experimented with iconv, html_entity_decode, and htmlspecialc ...

Trouble with Spaces in FPDF PHP Library on UNIX Operating System?"

I have encountered a strange issue while using the FPDF library to create a PDF document from MySQL tables. Everything works perfectly fine on my Windows computer, but when I try running the script on my Ubuntu machine, all the spaces disappear inexplicabl ...