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

FPDF & FPDI watermark reapeataed X-Y at an angle

Working with the setasign/FPDF & setasign/FPDI libraries, I have to add a watermark and a custom footer overlay to any PDF document on the go (each page has to be watermarked). Original PDF files are stored on the server, and the process has to be…
jijihbt
  • 35
  • 6
0
votes
0 answers

Using FPDF, FPDF Easytable and FPDI togheter

Good morning. I need to create a dynamic pdf that includes also tables. For that I set up my project with FPDF, then I added EasyTable. So my first working demo looks like that: include 'FPDF/fpdf.php'; include 'FPDF/exfpdf.php'; include…
Simone Conti
  • 349
  • 1
  • 17
0
votes
1 answer

setasign/fpdf and setasign/fpdi to password protect a PDF in PHP

I am having some trouble using the setasign/fpdf and setasign/fpdi with fpdf/fpdf to password protect an uploaded pdf file. So far I have this in my composer.json { "require": { "phpmailer/phpmailer": "^6.8", "fpdf/fpdf":…
0
votes
0 answers

Speeding up splitting FPDI pages?

I'm trying to render the pages of a pdf file with FPDI, one pdf each. However, this happens quite slowly. Code sample is below. The problem is constantly $pdf->setSourceFile($pdf_file); I think it's because of the use? I need ideas on this. use…
Perfection
  • 39
  • 1
  • 4
0
votes
1 answer

Can't make a simple modification of a pdf using Fpdf and Fpdi

I need your need for a problem which I know was asked a few times in different forum, but that I can't solve, probably because I'm a newbie. If I resolve a problem, another one is coming... until I goes back to my first problem etc... I'm just…
Laurent
  • 188
  • 2
  • 13
0
votes
0 answers

How to access FPDI setSourceFile from public Storage facade link

I got an error from FPDI setSourceFile. It shows that fopen() cannot find file or directory. I tried to access pdf template from database that I saved using Storage facade link, I think it's stored on /public/storage directory. Been using some…
AlphaRabid
  • 17
  • 4
0
votes
1 answer

Error when adding a new page from a PDF Using FPDF

Good morning, I'm trying to make an algorithm that takes several images and several PDFs and converts them into a single PDF, making it easier to upload files to my system. I have the following codes: $pdf = new FPDF(); $Fpdfi = new…
0
votes
1 answer

Laravel FPDI Package but Output Method is undefined

currently figured out how to implement the FPDI Class from https://manuals.setasign.com/fpdi-manual/v2/ into my laravel project. Now I think I can execute some of the method, but currently getting undefined method for the most important one: …
JrWebDev
  • 128
  • 9
0
votes
0 answers

Laravel merge compressed PDF files without ghostscript

I have a problem with pdfMerger. I can't merge pdf files higher than the 1.4 version. I guess this problem is because I am using FPDI free version. How can I merge 1.5 PDF files without using Ghostscript? I don't have shell access to the hosting…
0
votes
0 answers

php merge pdf files into main pdf with FPDI and TCPDF

I can render the PDF in normal conditions, but I want to merge other pdf files to my main pdf file. So I added a bit of code. (check the section in my code: PART THAT CRASHES MY PDF.....) the PHP error says: PHP Fatal error: Uncaught Error: Call…
0
votes
0 answers

How to parser compressed pdf in FPDI and FPDF?

I am using FPDF and FPDI to make PDF with a pre-uploaded PDF template. In Laravel. I get the below error when I setSourceFile for to make a new pdf. ERROR This PDF document probably uses a compression technique that is not supported FPDI. $pdf = new…
always-a-learner
  • 3,671
  • 10
  • 41
  • 81
0
votes
0 answers

ParseError thrown with message "syntax error, unexpected token "use setasign\Fpdi"

I'm using fpi and fpdf library I'm not able to import these libraries My php is: 8.1.5 fpdf: 1.84 fpdi: 2.0 error
0
votes
0 answers

php,fpdi,fpdf,ghostscript overflow from begining my pdf when inserting line 13

I generate a pdf using FPDF/FPDI from 2 PDFs, and I use ghostscript to always convert to version 1.4 my pdf, because users download and sign the pdf locally, thus changing the version (FPDF works with version up to 1.4). The problem is that it…
0
votes
1 answer

Uncaught Errror: Class FPDI_Protection not found despite of its presence in the FPDI_Protection.php file

I am trying to password protect PDF documents with a PHP script. So I downloaded and included the FPDI_Protection.php file in my script which contains the FPDI_Protection class. But when I'm trying to execute the script it says the Class…
user10418143
  • 220
  • 3
  • 11
0
votes
0 answers

Why does Fpdi fail to extend TCPDF when using PHP8.1?

I'm using: TCPDF version 6.4.4. FPDI version 2.3.6 PHP Version 8.1.7 (Running on Apache and Windows Server 2012,a dev environment) And, I don't think it's relevant but I'm also using tcpdf-extension These were installed with composer: { …
starshine531
  • 601
  • 5
  • 19