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
2
votes
0 answers

FPDI blank result even pdf not showing

I'm new in this FPDI so bear with me please. I followed every instruction I saw over the documentation of the FPDI but to no avail. I'm trying to populate a form (its a government form) so I can pay may responsibilities in a faster manner instead of…
Pro_Newbie
  • 118
  • 12
2
votes
1 answer

Fillable form values missing after pdf merge in php

I am merging two pdfs using FPDI extended class like this. function concat() { foreach ($this->files AS $file) { $page_count = $this->setSourceFile($file); for ($i = 1; $i <= $page_count; $i++) { $tplidx =…
oyeesh
  • 551
  • 9
  • 21
2
votes
1 answer

500 Internal Server Error on $pdf->setSourceFile()

I want to add a png-image to an existing pdf file. Therefore I'm trying to integrate FPDI/FPDF into my project, that is based on the SLIM framework with ELOQUENT. FPDI/FPDF is added with composer ( composer require setasign/fpdi-fpdf ). I…
PeteMeier
  • 521
  • 1
  • 6
  • 18
2
votes
2 answers

Symfony : Attempted to load class

I have install setasign/fpdi on my Symfony, I create a class for generate a PDF : class MerchPDF extends \FPDI {.... } and I have this error : Attempted to load class "FPDI" from the global namespace. Did you forget a "use" statement? on local,…
Gazouweb
  • 33
  • 5
2
votes
1 answer

App Engine Process randomly terminated because of "too much memory"

For the past year, I've been using google app engine to make PDF's and then output them onto the page. They have always been working flawlessly until today. Now, I get the following error - not all the time, but probably around 40% of my requests…
bryan
  • 8,879
  • 18
  • 83
  • 166
2
votes
2 answers

FPDF Doesn't output accents or simbols

i got a huge text in spanish, when i add it to the pdf with Write(5,$text) it outputs well but it doesn't show any accents(é,á,ó) or simbols like $ or &. i've tried using the output in UTF-8 $pdf->Output("I","Contrato",true); but still doesn't show…
Fabian W
  • 43
  • 1
  • 7
2
votes
2 answers

FPDF setSourceFile source file issue

Hello all I am new to codeigniter I am using fpdf & fpdfi for create and append pdf files. I have some silly issue as below when I am sending file path as $pdfPath="./public/site/userdocuments/sagar/RetData/1.pdf"; $pdf ->…
Vikas Kad
  • 1,013
  • 1
  • 18
  • 38
2
votes
0 answers

Importing a cropped area with FPDI

I am creating a new PDF file by importing from an existing PDF, using FPDI. $pdf->AddPage(); $pdf->setSourceFile("original.pdf"); $tplIdx = $pdf->importPage(1); How can I import a specific region from the existing PDF onto the new PDF that I am…
Fomo
  • 143
  • 9
2
votes
3 answers

Is there a way to use the transactions in TCPDF when extending it with FPDI?

I am using TCPDF with FPDI's bridge. The issue I'm having is that as soon as I use the startTransaction() I get the following error: TCPDF ERROR: Cannot access protected property FPDI:$numpages / Undefined property: FPDI::$numpages and the script…
Darryl Hein
  • 142,451
  • 95
  • 218
  • 261
2
votes
0 answers

PHP FPDF Document to PNG/JPEG

I am using FPDI to create pdf document,add text and download it in the browser with this code: $pdf = new FPDI(); $pdf->AddPage(); $pagecount = $pdf->setSourceFile($filePath); $tppl = $pdf->importPage(1); $pdf->useTemplate($tppl,…
YosiFZ
  • 7,792
  • 21
  • 114
  • 221
2
votes
1 answer

FPDF Header Question - Driving me crazy!

I am trying to generate a PDF that outputs Item Names onto a template PDF (using FPDI) with the Username listed on the top of each page. Every user can have a different number of items (i.e. if there are 1-4 items, only output one page; if there…
Michael
  • 23
  • 1
  • 4
2
votes
1 answer

Editing a existing pdf lead to creating a new pdf where old data is overwritten by the new file

I am facing an issue while editing the existing pdf. Here I have a pdf where I just want to add a employee name on the first line of every page in pdf. But when I try to do this using fpdf and fpdi then it will save the new pdf with employee name…
2
votes
1 answer

Adding pages from an external pdf using TCPDF and FPDI

I am creating a pdf document using tcpdf which is going well. The issue I am having is that I want to include an external pdf in the middle of the document and then continue to add my own pages afterwards. I have read that FPDI is the best way to…
2
votes
1 answer

Editing password protected pdfs with fpdi

I've been trying to add a watermark to a password protected pdf (protect to write only) with fpdf and fpdi. It works on normal pdfs but when it is password protected it gives this error: FPDF error: This document…
user1782737
  • 23
  • 1
  • 3
2
votes
2 answers

using FPDF and FPDI

the root of my website is "/var/www/PDFBuilder". I have 2 folders "fpdf17" and "fpdi142" and i've unzipper a file called "fpdf_tpl.php" in the "fpdf17" folder. This is my code: error_reporting(E_ALL); ini_set('display_errors',…
Enrique Moreno Tent
  • 24,127
  • 34
  • 104
  • 189