3

I am developing a project in codeignitor. Here I want to develop a feature like modify existing pdf.

I have list of pdf files in each file I want to add cover page that is html content and save new pdf.

I am looking around for the solution. Please help me to find best approach to get it done.

Thankyou.

Praveen D
  • 2,337
  • 2
  • 31
  • 43

2 Answers2

3

simply you can use FPDF in CodeIgniter...

refer to: https://github.com/iamfiscus/Codigniter-FPDF

me also using fpdf in my projects...

ReNiSh AR
  • 2,782
  • 2
  • 30
  • 42
  • is it provide to read content from existing pdf and add cover page and create new pdf? – Praveen D Jan 13 '14 at 05:17
  • i dont know, if we can able to read pdf,, me generating pdf from the values from db,,, ie. dynamically create pdf for invoices, bill, and reports... – ReNiSh AR Jan 13 '14 at 05:19
  • my question is for adding content in existing pdf file. – Praveen D Jan 13 '14 at 05:22
  • 1
    k you need to edit the existing pdf, i think there is an additional library fpdfi (in FPDF) for your purpose, it actually used for editing existing pdf.... search for 'edit a pdf using fpdf' u can find it.... – ReNiSh AR Jan 13 '14 at 05:32
  • for this file http://www.pdf995.com/samples/pdf.pdf Error : FPDF error: Cannot open pdf.pdf ! – Praveen D Jan 13 '14 at 11:23
1

You can create a pdf from your Html using

http://fpdf.de/downloads/addons/42/

then you can refer to some already answered similar questions for merging.

Merge multiple PDF files into one in PHP

Merge PDF files with PHP

Edit Existing PDF multiple page File using FPDF & FPDI

Community
  • 1
  • 1
Deepika Janiyani
  • 1,487
  • 9
  • 17