Questions tagged [fpdi]

A PHP class which allows to read pages from existing PDF and generate new files based on FPDF.

Home page of FPDI

FPDI is a PHP class based on which allows to generate and manipulate PDF files with pure PHP, that is to say without using the PDFlib library. F from FPDI stands for Free: you may use it for any kind of usage and modify it to suit your needs.

327 questions
0
votes
1 answer

Using chinese characters in FDPI

I have a pdf template that I write English letters on it and it works fine. $fontPath = public_path('fonts/'); define('FPDF_FONTPATH', $fontPath); $pdf = new Fpdi(); $template =…
senty
  • 12,385
  • 28
  • 130
  • 260
0
votes
1 answer

Error embedding pdf using fpdi in CodeIgniter 3

Thanks in advance... I am trying to generate a pdf in CodeIgniter using the fpdi and tcpdf libraries using the following code...
0
votes
1 answer

FPDI - fopen( PDF.pdf ): failed to open stream: No such file or directory

I am using Codeignighter, FPDF and FPDI to Amend a PDF to be emailed to a client. Using the basic example give by FPDI I can get my code to work perfectly on localhost (standalone php file, no codeignighter) however when i put the same file onto my…
0
votes
1 answer

PHP/FPDI: "Warning: fopen: failed to open stream: No such file or directory in." and "atal error: Uncaught InvalidArgumentException: No stream given."

I'm trying to get an existing PDF file from a local path in my project, using FPDI/FPDF. I followed the instructions, trying making it corectly, but always I try the command to import the PDF file (even in my localhost or my server) I receive the…
Vinicius Ruiz
  • 11
  • 1
  • 1
0
votes
0 answers

how can i add header(logo) and footer(logo with page number) in fpdi

how can i add header(logo) and footer(logo with page number) using fpdi or if you are suggesting any other like tcpdf pls give me any cdn link for tcpdf.php file (if possible)
0
votes
1 answer

PHP Fpdf library: Embedding logo image in the header for every page in the PDF

I am working on a PHP project. I need to generate the PDF using the FPDF library, http://www.fpdf.org/ in my application. But I am having an issue with embedding the logo image in the header for every page. Here is my code: $fontFamily =…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
0
votes
0 answers

lost with FPDI setSourceFile()

I'm a bit lost with Fpdi, I was trying to do other things, but seeing that nothing worked I was just trying the most basic thing I could think of. I don't know why the setSourceFile () part does not work, but I couldn't find the problem... enter…
0
votes
1 answer

TCPDF and FPDI, footer with page nr. not working

I'm using TCPDF in combination with FPDI. All working good except the Footer (want to add Page Numbers there). My Code: // Extend the TCPDF class to create custom Header and Footer class MYPDF extends FPDI { // Page footer public…
Oliver
  • 156
  • 1
  • 13
0
votes
1 answer

If Possible to Read existing PDF content position and add the some content after over the existing content in laravel?

Laravel Package: "setasign/fpdi": "^2.3", "setasign/fpdf": "^1.8" $pdf = new \setasign\Fpdi\Fpdi('L','mm','A4'); $pageCount = $pdf->setSourceFile(public_path().'/'.$url); $pdf->setFont('Arial', 'B', 10); for($i = 1; $i <= $pageCount; $i++){ …
Mdr Kuchhadiya
  • 431
  • 4
  • 12
0
votes
0 answers

How to combine pdfs generated by fpdi in different php files into one zip file

I have a few php files that generate pdf files using fpdi. How can I combine all of the generated pdf files into one zip file for download in another php file? Edit (to further clarify, also this is for a WordPress plugin I'm working on for my…
Joseph Yhu
  • 13
  • 3
0
votes
0 answers

500 internal server error in FPDI in line $pdf = new Fpdi();

When I use this code I get always 500 server internal error when loads line $pdf = new Fpdi(); All libraries are ok and paths are ok.... I've download for different sites and nothing... Thanks for your help !!!!
0
votes
0 answers

FPDI with FPDF installation

I have installed and created a few PDF documents with FPDF. I currently need to insert a large number of small pdf graphs (created with R) at the end of a pdf being created with FPDF. I've spent a lot of time trying to get FPDI installed and…
Jack
  • 19
  • 2
0
votes
1 answer

Use different image from two PDF for create one PDF with FPDI/TCPDF

I would use two differents pages from two differents PDF for create one PDF with both pages combines. For that I use FPDF and I have done this : $finalPDF = new Fpdi(); $secondPDF = new Fpdi(); $personalizationPdfPath =…
D.C
  • 15
  • 3
0
votes
1 answer

FPDF library not showing special characters like '✓'

Hey I try to write special characters like '✓' to FPDF and it's not work. Only normal string work. I have checkbox on the pdf and i try to fill the checkbox with '✓'. I try it like this: $value = iconv('UTF-8', 'windows-1255',…
Baruch Mashasha
  • 951
  • 1
  • 11
  • 29
0
votes
1 answer

PHP FPDI Try to add text in Hebrew language to pdf file but i got problem in utf

I use FPDI library for php and try to add text into pdf file. It's work but when i change the text to Hebrew i got ×•× ̈×– הצלח×a×TM להוס×TM×£ × ̃×§×¡× ̃ This is my code:
Baruch Mashasha
  • 951
  • 1
  • 11
  • 29