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

Printing text on pdf that has a fillable form

I am currently using FPDI to print numbers on a static pdf document. When I try to do the same with a pdf that has a fillable form on it FPDI throws an error: "This document ([pdf path]) probably uses a compression technique which is not supported…
Benjamin
  • 1,067
  • 20
  • 30
0
votes
1 answer

fpdi - Add content to the existing pdf but the existing content is moving out

I am using fpdi to add content in the existing pdf file that has some contents already. Once I added content, the existing content is moving out (The length of the pdf file is increasing). Please help me to fix this. $pdf =& new…
user1740757
  • 87
  • 1
  • 10
0
votes
2 answers

Insert string to PDF with For loop

I'm a junior PHP developer. For a costumer I need to place some strings into a pdf. I'm using FPDI and I like it. I have an existing template PDF and I need to insert every characters of a string into a little graphic box (see image). Every…
user6825853
0
votes
1 answer

Edit Pdf using FPDF/FPDI in php

Are we able to change amount in already generated PDF file ? I want to change Total amount only in bellow screenshot, I don't want to regenerate that PDF file ? Any suggestion welcome.
Bhargav
  • 556
  • 4
  • 8
0
votes
1 answer

FPDI Output File Size

I am using FPDF and FPDI to extract 2 pages from a pdf document that is generally about 28 pages long. The pdf files are basically a page with an image filling each page entirely and are around 35-40mb. When using FPDI to extract the last 2 pages…
ScottF
  • 565
  • 6
  • 21
0
votes
2 answers

TCPDF + FPDI : Ensure that all fonts are fully embedded

I'm using TCPDF + FPDI. I want to embed all fonts fully. Font embedding works great when using addTTFfont() and SetFont() methods. But when I try to open existing pdf file using FPDI, I can't get list of used fonts and can't determine which of them…
mirushaki
  • 897
  • 1
  • 10
  • 13
0
votes
2 answers

FPDF error: Some data has already been output - PHP script

Hi guys I'm trying to modify a pdf file and store it in my server, but i keep getting this error : FPDF error: Some data has already been output, can't send PDF file and i can't manage to figure the cause of it. Here is the PHP…
0
votes
1 answer

How do I rotate all or specific pages in a PDF using PHP?

I have PDF documents uploaded by users that need to be processed by auditors. Sometimes the scanned pages in a PDF are sideways or upside down. How do I rotate the pages using php? I'm using TCPDF and TCPDI, which I believe are the same as…
Sergiu Z
  • 153
  • 1
  • 3
  • 12
0
votes
1 answer

Symfony2 editing PDF

I have a problem when trying to edit existing PDF. In non-symfony part of code I've used FPDI library and I could just open existing pdf as: $pdf->setSourceFile('example.pdf'); Now in the symfony part of the project we're using White october bundle…
Pitchwaiz
  • 43
  • 8
0
votes
1 answer

How to implement ImageSVG() using FPDI and TCPDF to render PDF?

I'm using FPDI to render a PDF that has a PDF set as a background, but want to include an SVG file on it, which for some reason gives me the error while using the TCPDF library along with it. Are there any workarounds, or my code incorrect. (before…
LatentDenis
  • 2,839
  • 12
  • 48
  • 99
0
votes
1 answer

PHP - FPDI is failing to open existing PDF

FPDI is failing to load existing PDF. How to fix it? require_once(APPLICATION_PATH . '/models/fpdf/fpdf.php'); require_once(APPLICATION_PATH . '/models/fpdi/fpdi.php'); $pdf = new FPDI(); $pageCount = $pdf->setSourceFile( APPLICATION_PATH .…
user285594
0
votes
1 answer

PDF file cannot be opened

I would like to open a PDF file in my Symfony 2 project and manipulate the file with FPDI. However, the file seems to be somehow not readable. Here comes my code: public function myPpfFunction() { $fileLocator =…
Max
  • 832
  • 1
  • 14
  • 33
0
votes
1 answer

style attribute not working in writeHTML method of tcpdf class

Is it possible to add style attribute to html tag when writing to a pdf file using TCPDF's writeHTML method? Here is sample code: $html = "
dave
  • 14,991
  • 26
  • 76
  • 110
0
votes
1 answer

Add image watermark over another image in pdf php

I am trying to add Raddyx Technologies watermark text in pdf using fpdf and FPDI. Watermark is appearing on all the pages but all the pages my watermark is showing below the image with more space. I want my watermarking image to come on top of the…
Chinmay235
  • 3,236
  • 8
  • 62
  • 93
0
votes
1 answer

How to use FPDF_CellFit with FPDI

I've been playing with FPDF and need to create a PDF using a starting template PDF so managed to get that figured out using FPDI. I then needed to use a non-standard font which I managed to get working as well. However... the letter spacing is all…
Mike Darling
  • 197
  • 2
  • 15