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

How to generate an on-page preview of a generated PDF using FPDF

I'm able to generate a PDF with PHP using FPDF, but I'm trying to create an on-screen preview of the generated PDF rather than jumping straight to the online PDF viewer.
TJDev
  • 133
  • 3
  • 13
0
votes
1 answer

Post inside fpdf ... help

Is this possible? $pdf->setSourceFile**('Write(0, "h.pfd")')**; --- it gives this error: FPDF error: Cannot open Write(0, "h.pfd") ! Is there any way to integrate a write inside fpdf? I just want Post inside setSourceFile() fpdi... any…
NORM
  • 235
  • 4
  • 7
  • 14
0
votes
1 answer

ENTER in fpdf when $_POST function.. ln ()?

Is there any code I can put in the input post text so that when appearing on fpdf it gives an enter space (to the next line) ..???
NORM
  • 235
  • 4
  • 7
  • 14
0
votes
1 answer

Using FPDI to open a PDF and write text to it

I'm trying to open a PDF and add text to it using this library: https://www.setasign.com/products/fpdi/downloads/ This is the demo code: https://www.setasign.com/products/fpdi/demos/simple-demo/#p-283 I've been at this for several days and I'm at my…
Robin Baker
  • 25
  • 1
  • 6
0
votes
1 answer

Add an External PDF file using TCPDF

I am using TCPDF for generating PDF Documents. Now I Have a Scenario in which i want to add and External PDF file between my TCPDF Generating File. I tried it very much but i failed. Here is My…
sunny
  • 1,511
  • 5
  • 20
  • 57
0
votes
0 answers

using fpdf, fpdi and fpdm to create pdf file with dynamically pagecount

i´m trying to create a pdf file with flexible length. considering a template file with one page, having diffent form fields to be filled via php. this file has space for exactly ten database entries. so if i have a query with ten or less results,…
whocares81
  • 129
  • 1
  • 16
0
votes
0 answers

Filling XHTML fields in already made PDF file and adding image into it using PHP

I have got a PDF file that have an XHTML form with multiple input fields. I have to use this PDF file as template and fill those fields with user submitted data. I have searched over the internet and found a script called FPDI that can be used with…
0
votes
1 answer

How to add digital signature in a pdf having a digital sign on it already with tcpdf in php

I am using the tcpdf and fpdi to import and sign the pdf, but when i try to add the second digital signature the first one does not retain. It might creating the new pdf. So, is there any way to retain or at least reinsert the old signature to to…
Manish Champaneri
  • 654
  • 3
  • 8
  • 28
0
votes
1 answer

Symfony - FPDI can't insert image below limit

I have to write some text and images on an existing PDF. This PDF is composed of 2 pages which are both sides of 10 cards with 2 cards on width and 5 cards on height. I use FPDI for that purpose. I have a last problem left : I can't insert an image…
Kristen Joseph-Delaffon
  • 1,261
  • 2
  • 17
  • 37
0
votes
1 answer

Using FPDF & FPDI & TCPDF

I want to write some text on top of a PDF template, and I achieved this using: FPDF & FPDI libraries. My code:
Learner
  • 611
  • 3
  • 12
  • 28
0
votes
2 answers

How to rotate a PDF page so that *Box is set (and it doesn't just use rot=90)

Our site written in php receives PDF files from customers. After processing, the next step is code from a vendor. That code requires that each page is 8.5x11" in portrait. The code also requires that the page have data like this (output from…
Mark Kasson
  • 1,600
  • 1
  • 15
  • 28
0
votes
0 answers

tcpdf: adding multiple files to a zip directory with tcpdf

Using Tcpdf in with zend and not able to add files to zip That's what i've tried require_once('eng.php'); require_once('tcpdf.php'); $pageLayout = array(750, 800); $content=Array( 'Document A', 'Document…
Waqar Haider
  • 929
  • 10
  • 33
0
votes
1 answer

FPDI (TCPDF) fseek(): stream does not support seeking

I'm using TCPDF and FPDI to embed an existing pdf file into my new pdf generated with database data. The problem is when I charge the page, it throws this error: Severity: Warning Message: fseek(): stream does not support seeking Filename:…
0
votes
2 answers

Using FPDI AND FPDF

I'm trying to use FPDI and FPDF for generating a pdf, but I have a problem when I create a cell. I want to use the fillcolor. So the Cell has a background color. For now I have like this:
Alen
  • 39
  • 2
  • 3
  • 7
0
votes
1 answer

PHP code to read and delete page from pdf file

I have a system that generates PDF files, each file consists of two pages. For some reason I need to write a PHP code which can delete the second page from each PDF file. Herer is what I've done and what was the results: 1- I used TCPDF library to…
Nour
  • 11
  • 1
  • 1