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

FPDI Template not found error

I'm trying to apply a watermark to an existing pdf using FPDI library, which is included in my project using composer package "setasign\fpdi-fpdf". Everytime I run the script I get "Template not Found" Exception. Here is the code: $pdf =…
user3101803
  • 35
  • 1
  • 7
0
votes
0 answers

FPDF + FPDI together?

I am using FPDF to generate PDF contracts, however people in office often forgets to print ToS file with them and they want me to add ToS into every contract, but when I try to use both FPDF and FPDI it shows me err 500, I've never worked with those…
S. Lucas
  • 1
  • 4
0
votes
2 answers

Class 'setasign\Fpdi\FpdfTpl' not found

everyone I am working with fpdf an fpdi, is my first work and I have a problem. I can not edit a pdf. This is the problem. thanks Class setasign\Fpdi\FpdfTpl not found in C:\wamp\www\Ale\fpdi\src\Fpdi.php use…
0
votes
1 answer

FPDI setSourceFile throws exception

$pagecount = $pdf->setSourceFile($pdffile); The above line is throwing the exception "This document ([file path]) probably uses a compression technique which is not supported by the free parser shipped with FPDI." This is happening despite: the…
Andy McCormick
  • 225
  • 2
  • 12
0
votes
1 answer

Rescale inserted PDF using FPDI in PHP

I am creating a PDF for our clients website. The PDF is paginated for an A4 print. At the end I need to insert several existing PDFs. Using the FPDI library works fine except when the inserted PDF is wider than the the A4 width, it doesn't…
0
votes
0 answers

PHP FPDF append image at end of existing PDF File

I have a PHP application where I have to browse for an image from my desktop and add it to an existing PDF file saved in my project file. Now, my PDF file already has around 5-6 images, and I need to add this image at the end of the PDF file. I also…
Simran
  • 593
  • 1
  • 14
  • 37
0
votes
1 answer

FPDI cannot initialize new FPDI() object

I'm trying to remove the second page from multiple pdfs. I get a 500 error on this page when I include the line $pdf = new FPDI(); and anything afterwards. The path to the autoload.php is right, so I do not know what I am doing wrong. I cut out…
Jay Shri
  • 119
  • 3
  • 12
0
votes
1 answer

Laravel 5 Fpdi unicode character

I need help for my laravel project. I am using Fpdi to import PDF but when I display it on localhost, I have only unicode characters like this : %PDF-1.4 3 0 obj <> endobj 4 0 obj <> stream x�E�K�0D�9�,a�:i�d��H�|�4�ⓠr|�!y�aƗ!C*�r�y���{�98 …
0
votes
0 answers

Illegal string offset '/Root' in FPDF FPDI Parser issue

I have multiple pdf files of one user. So, I have given an option to our user to see all his document in a single PDF file. For this, I am using FPDI pdf parser to merge all pdf files in a single file and then show to user. But I am getting below…
Dhirender
  • 604
  • 8
  • 23
0
votes
1 answer

Import part of PDF based on coordinates

I'm using FPDI to import a PDF. setSourceFile('dummy1.PDF'); $pageId =…
0
votes
1 answer

Fpdi setting background pdf or image code igniter

In my project I am saving scanned documents to either pdf or image format. Now After scanning I am creating a barcode of the file. Then I want to print to print the scanned docs together with the barcode. Now I am using fpdi for generating the pdf…
Giant
  • 1,619
  • 7
  • 33
  • 67
0
votes
1 answer

FPDI does not import specified number of pages

I have a problem with FPDI/FPDF. I have a form that according to the chosen option (1, 2 or 3), either uses the source template for 1, 2 or 3 pages each. $num_experiencias = $_POST["totalExpPdf"]; if($num_experiencias == "1"){ …
Annton32
  • 3
  • 2
0
votes
1 answer

Slovak characters in Fpdi

I'm writing a PDF exporter for a Slovak web page. My DB is UTF-8 encoding. Some characters from the DB are converted correctly, some are not, here is the example: input from DB: ôňúäéíáýážťčššľĽŠČĎŽŇÁÍÚĹŤÉŽŹÝ output in PDF:…
Jozef Kétyi
  • 147
  • 2
  • 11
0
votes
1 answer

Is it possible to combine tfpdf with fpdi?

At this time, i fill an ISO-8859-1 pdf with fpdf and fpdi. I want to transform the pdf in UTF-8. Is it possible to use tfpdf with fpdi in order to deal with UTF-8 pdf ?
ratm
  • 913
  • 1
  • 11
  • 20
0
votes
1 answer

FPDF/FPDI how to change Metadata of existing PDF

Is it possible to do: $pdf = new FPDI(); $pdf->setSourceFile($pdfpfad); $pdf->SetTitle(...); $pdf->SetAuthor(...); $pdf->SetSubject(...); $pdf->SetKeywords(...); $pdf->SetCreator(...); and save the file without importing the whole PDF? I want to…