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

TCPDF and FPDI: Is there a separate version of FPDI for TCPDF than for FPDF

I'm trying to build an header generator for pdf worksheets. My choice of technologies were: FPDF and FPDI Now, I'm transistioning to TCPDF and FPDI, because the powers that be have decided we need water marks (transparencies). According to the FPDI…
Zigu
  • 1,625
  • 4
  • 23
  • 33
0
votes
1 answer

How can I extend TCPDF with FPDF and FPDI?

I'm trying to extend FPDF with FPDI and TCPDF. require('./fpdf/fpdf.php'); require('./tcpdf/tcpdf.php'); require('./fpdi/src/autoload.php'); $pdf = new \setasign\Fpdi\Fpdi(); ... $pdf->setSourceFile(...); // from FDPI $pdf->ImageSVG(...); // from…
Kermit
  • 33,827
  • 13
  • 85
  • 121
0
votes
1 answer

Trying to Import PDF into FPDF/FPDI Adds Blank Page

I'm new to using FPDF / FPDI. My predecessor here extended the FPDF class and I'm adding onto his code to edit his PDFs and make new ones. I've been able to create the first 3 pages of a PDF I want to make by writing values from my database into…
xanabobana
  • 63
  • 2
  • 16
0
votes
0 answers

How to add an Ink annotation to a pdf

I know you can do $pdf->annotation('test'); in mpdf, which works perfectly fine, but how do you add other types of annotations? one example is "/Subtype /Ink" on which The annotation() function documentation says nothing about. I also searched for…
Nais_One
  • 389
  • 6
  • 18
0
votes
1 answer

TCPDF 1st page Missing on Import Page

When I try to import a pdf from an existing pdf it removes the first page and starts from the second. where am I going wrong $pdf = new TcpdfFpdi('P', 'mm', 'A4', true, 'UTF-8', false, true); $pdf->SetCreator('TCPDF…
S P
  • 1
  • 2
0
votes
1 answer

Apply multiple digital Signatures on PDF

I have a project and i have to digitally sign a PDF more than once. I've tried to do this with TCPDF, but it seems that TCPDF allows only one Signature! because when I import the already signed PDF (with FPDI) and sign it, I have only the second…
Wael_al
  • 51
  • 1
  • 1
  • 4
0
votes
1 answer

Merge PDF files with PHP into single file

If i have some PDF files, each has one page and i would like to merge all files into on single file using PHP I have read dozens of questions here about same but most of all are out of date or no longer working since for PHP version >= 7.0 One of…
Reham Fahmy
  • 4,937
  • 15
  • 50
  • 71
0
votes
1 answer

SSRS Set the generated PDFs version to 1.3

I am using SSRS version 15.0.1102.897. When I generate PDF files using this version the PDF gets set to version 1.7. I have another instance of SSRS running version 13.0.2216.0 and when I generate PDF files using this version, the PDF gets set to…
jprice92
  • 387
  • 4
  • 18
0
votes
1 answer

Programmatically "flatten" a multi-page PDF as Acrobat would do before printing

Each week my company gets product labels printed. I have a PHP script which uses FPDI to generate a few PDFs to send to our print shop. Combined they are about 500 pages. Once opened in Acrobat, they take a long time to spool. Acrobat reports that…
0
votes
0 answers

fpdf anf fpdi can not write barcode

I am using a barcode generator php code to generate barcodes. But when I want to write barcode to an existing pdf file using fpdi+fpdf the written string is not the generated barcode! It is written obscure words. The code that I used is…
0
votes
0 answers

XREF table broken when creating PDF file in Joomla component

When importing and modifying a PDF file inside a Joomla component using the FPDF and FPDI libraries, after sending the file to the browser, the PDF viewer claims the XREFS table to be broken. Here's part of what I have:
TomS
  • 467
  • 9
  • 25
0
votes
0 answers

Error while reading pdf and setting a template using MPDF - PHP

I am trying to read a pdf file, which contains images and formatting and adding new page at the end of that pdf file and then setting pdf password using mpdf in codeigniter 4.1.3 and mpdf version > 8.0. Plain PDF files without images works…
Heena Manglani
  • 356
  • 2
  • 11
0
votes
0 answers

FPDF add new fonts with central europe encoding

I'm trying to encode some characters like Š,Č. I added new font AbhayaLibre-Regular I generate the font files http://www.fpdf.org/makefont/make.php . I used ISO-8859-2 (Central Europe) to generate font files but still I get strange encode…
Anass Hl
  • 1
  • 3
0
votes
1 answer

FPDI-2.3.6 "Fatal error: Uncaught Error: Class "FPDI" not found" (2021)

I download and uncompress FPDF 1.83 and FPDI 2.3.6, after I load correctlly with:
Stackoverflow
  • 449
  • 5
  • 13
0
votes
1 answer

send a pdf union from phpmailer with the fpdi and fpdf libraries

hello good evening I have a problem when trying to send a pdf union from phpmailer that I use with the FPDI and FPDF library. $filename = "example.pdf"; $document = $pdf->Output($filename, 'S'); $printpdf = merge($folders,$filename); This line…