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
1
vote
1 answer

Print pdf page numbers from the first page and set the footer

I have this code below which works perfectly for me, the problem is the first page is not numbered and then the footer that i have set appears as the header, suggestions $full_name = 'custom_worksheets/' . $sheet_name . '.pdf'; $pdf =…
alphy
  • 291
  • 3
  • 19
1
vote
0 answers

tcpdf, fpdi setting page width and heights

So I have kind of a unique problem. I am using both the fpdi and tcpdf to help compile a final pdf file. The final pdf includes meta data (used via tcpdf) and importing an original pdf (used via fpdi) and some text overlay and such. Everything works…
MrTechie
  • 1,797
  • 4
  • 20
  • 36
1
vote
2 answers

FPDI & TCPDF problems?

Im having a rather odd problem getting FPDI & TTCPDF php classes to work together. FPDI: http://www.setasign.com/products/fpdi/about/ TCPDF: http://www.tcpdf.org/ From reading around and even looking at some of the examples given, these should work…
whispers
  • 962
  • 1
  • 22
  • 48
1
vote
1 answer

Integrate FPDI with TCPDF in Codeigniter

I am using TCPDF successfully with codeigniter. Now I want to use FPDI. So I can merge PDFs. How do I do that? As an example I found this: http://www.setasign.de/products/pdf-php-solutions/fpdi/demos/tcpdf-demo/ When I run this class, codeigniter is…
Lomali
  • 29
  • 1
  • 6
1
vote
1 answer

TCPDF with FPDI templates and THEAD

I have a html table with THEAD output with writeHTML which should be displayed on every page at the top of the table. It works but when I use a template loaded by FPDI the head is white and disappears on the second page and further. I can mark the…
bluescreen
  • 117
  • 1
  • 6
1
vote
1 answer

Downloading a PDF file gives a "Network Error"

Im in a TYPO3 system and I have an extension where I built a PDF file using fpdf. When I submit the form with the data, the file is downloaded (around 3MB file) but when the download reaches 100%, it gives me a "Unknown Network Error". (Thats the…
Enrique Moreno Tent
  • 24,127
  • 34
  • 104
  • 189
1
vote
2 answers

TCPDF with FPDI templates and CSS

When using TCPDF together with FPDI templates, some CSS support is lost in the process. The problem are things like borders or background-colors, that end up in layers below the PDF template. TCPDF uses SetLineStyle() to convert CSS…
1
vote
3 answers

Edit Existing PDF multiple page File using FPDF & FPDI

I am usinf FPDI to edit my existing pdf file and its work perfect for single page. As ou can see i am editing my $tplIdx = $pdf->importPage(1); first page. I have six page pdf file and need to add 2 variable in different page. Is is possible ?…
Ajay Patel
  • 5,298
  • 11
  • 55
  • 87
1
vote
2 answers

Modifying PDF and reuse embedded font

I want to modify a PDF document with PHP. I found the libs FPDF and FPDI which allows to create and modify PDF files. Here is my very simple code:
rekire
  • 47,260
  • 30
  • 167
  • 264
0
votes
1 answer

Resize PDF when loading with FPDI into TCPDF

I use FPDI to load certain pages out of a PDF into TCPDF and output a new PDF file. Some of the PDF files I am loading have pages that are slightly bigger than 8.5x11. Is there any way I could resize them down somewhere during this process?
Mike
  • 2,862
  • 10
  • 42
  • 55
0
votes
1 answer

PHP and importing pdf with forms

I'm having trouble importing an existing pdf file with forms (text fields, radio buttons...) with some php libraries like TCPDF, FPDI and PDFlib. When I import pdf file with forms, do some text print on it, save it, but the output pdf file does not…
despot
  • 1
0
votes
4 answers

Text getting clipped when generating PDF using FPDF/FPDI/TCPDF

I have a PHP project where I am opening up a premade PDF, and filling it out with data via PHP. The problem I am having is that one of the text elements isn't showing up. I am positioning it towards the bottom right of the PDF page. If I move it…
Mike McLin
  • 3,627
  • 7
  • 41
  • 49
0
votes
0 answers

How to use Fpdi with tcpdf in codeigniter?

I am using codeigniter 3 and working on pdf creation. I am using tcpdf library and now need to use Fpdi library to merge pdfs with Tcpdf but it's not working. In application\library folder i have tcpdf and fpdi library folders. In application\tcpdf…
0
votes
0 answers

Adding HTML Content to Existing PDF Using FPDI and mPDF in PHP

I'm currently trying to add HTML content to an existing PDF document using the FPDI library to import the PDF and the mPDF library to generate the HTML content in my wordpress project. However, I'm facing difficulties as my code doesn't seem to…
0
votes
1 answer

Class "setasign\Fpdi\FpdfTpl" not found when using fpdi and php

Salutation, Since a days when i use fpdi for insertion of image in pdf file this response appear : Fatal error: Uncaught Error: Class "setasign\Fpdi\FpdfTpl" not found in C:\wamp\www\QRCode\fpdi\src\Fpdi.php:23 Stack trace: #0…