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

FPDFI Error with multiple page PDF when downloading and opening

So I'm creating a multiple page PDF with FPDI and I've encountered a problem when downloading and opening the PDF it creates. It displays and prints fine when viewing in Chrome or Firefox via their built in plug-ins. However in Adobe Reader or in IE…
0
votes
1 answer

FPDI PDF Parser eats "Print" Button within document

i use FPDI-PDF for parsing a PDF Document. I have a "print this form" button within my document. It works when i open the file in PDF Reader. When i run this file through FPDI-PDF the "print this form" button is gone. The file was saved as Adobe PDF…
Stonegate
  • 5
  • 2
0
votes
2 answers

Method to decompress a PDF (non-Adobe) while retaining form fields?

I found a similar question that involves Acrobat, but in this case the PDF was made with a combination of MS Word and CenoPDF v3, with which I'm unfamiliar. Additionally the PDF is version 1.3. I'd like to decompress it, to see its low-level…
tao
  • 1
  • 1
0
votes
1 answer

FPDF, FPDI - how can I combine separate files each with unique text using PHP?

I'm stuck with using fpdf and fpdi. I'm using this code to create 1 pdf file from 5 or more files (!important) and would like to input unique text on each page. the code in its current form puts page01test on every page rather than page02test on…
Searlee
  • 61
  • 2
  • 14
0
votes
1 answer

Editing and later protecting pdf with fpdi not working

I am having two codes one for editing already uploaded pdf and second one for securing already uploaded pfd with password here are the code snippets 1) For pdf editing require_once('fpdf.php'); require_once('fpdi.php'); $pdf = new FPDI(); …
KAsh
  • 304
  • 5
  • 23
0
votes
1 answer

FPDF / FDPI (works local but not online)

I have troubles using fpdf and fdpi. In fact i want to use a pdf template and display text on it from a submitted form. There are no problmes in local, everything works fine. But when i paste files on my server (i use wordpress on 1&1), i get the…
Aloys Fortier
  • 21
  • 2
  • 7
0
votes
1 answer

Import pages from pdf in php script

require_once('fpdf.php'); require_once('fpdi.php'); // initiate FPDI $pdf = new FPDI(); // set the sourcefile $sourceFileName = 'dnb.pdf'; //Set the source PDF file $pagecount = $pdf->setSourceFile($sourceFileName); $i = 1; $j = 2; $k = 3; $l =…
0
votes
0 answers

FPDF won't create new page

I need to create PDF file that is updating. Data is updated from time to time and every new data is placed on new line of document. Problem is that when first page of document is filled, my program won't create second page. here is code that i am…
user3429355
  • 77
  • 2
  • 2
  • 9
0
votes
1 answer

error 'class not found ' when adding Fpdf/Fpdi classes to laravel using composer

I'm trying to add the following two classes: https://packagist.org/packages/itbz/fpdi https://packagist.org/packages/itbz/fpdf I've included them in my composer.json file: "require-dev": { "itbz/fpdi": "dev-master", "itbz/fpdf":…
a7omiton
  • 1,597
  • 4
  • 34
  • 61
0
votes
1 answer

magento FPDF error: Some data has already been output, can't send PDF file

i'm having the next problem: I try to see a pdf in one magento phtml this is my code: $fileName = Mage::getConfig()->getOptions()->getMediaDir()."/pdf/Gutschein-v2.pdf"; $pdf = new FPDI(); $pdf->addPage(); $pdf->setSourceFile($fileName); $tplIdx…
Miton Leon
  • 274
  • 1
  • 5
  • 15
0
votes
1 answer

Ghostscript settings for PDF compatible to ISSUU

I need to convert a PDF file using GHOSTSCRIPT and make it compatible to ISSUU.com My pdf came from PHP-FPDI output. When I upload it to ISSUU some text/fonts become broken and not visible. Need to do everything with PHP. The pdf is an exisiting…
SandoMarco
  • 11
  • 3
0
votes
1 answer

Delete pages using fpdf

I would like to remove some pages from my PDF created using fpdf library, $pdf = new PDF(); $pdf->AliasNbPages(); $pdf->AddPage(); Is there any function to remove the page. I am not familiar with FPDF.
V A S
  • 3,338
  • 4
  • 33
  • 39
0
votes
0 answers

What is the best way to create toc (Table of Content) with DOMPDF?

I have three ways to create a TOC with DOMPDF, and don't know which to choose .. The Problem: You know the Page numbers after rendering, but want the TOC in advance of the document. All three methods use inline PHP to write the content in a global…
Wolfgang Blessen
  • 900
  • 10
  • 29
0
votes
1 answer

FPDI, how to remove automatic page counter

I'm using FPDI together with TCPDF to add a page to a already existing PDF-file. This works great, but I have one problem. When I output the new PDF I get an automatic page counter in the lower right corner, "112/299" for example. I find no…
Stefan Konno
  • 485
  • 2
  • 6
  • 8
0
votes
1 answer

PHP - FPDI - Can't Write to more than One Page

The problem is, I need to write data to several copies of the same imported pdf file, and save it as one pdf. I can write data to one page just fine, but when I try to write to more than one, or even continue text (using SetAutoPageBreak()), it…
1 2 3
21
22