Shameel Arafin on 25 May 2007 05:08:52 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Programmatically insert text into a PDF

  • From: Shameel Arafin <algebraist@gmail.com>
  • To: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
  • Subject: Re: [PLUG] Programmatically insert text into a PDF
  • Date: Fri, 25 May 2007 01:08:39 -0400
  • Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=B8YY4lXutrMaH9N5K3P3UrZ1SGzRjcw6Pa2lG+Ghpe4ePoOIdPVc6catcKQ7YU/+cwTcHyY6LgTk/C74xbgx/Djv+o0o61w5fpnPosCtpEeL0o2Tsdj2n30CeURDGWupY9BEWZUXtNvaUWBnaDTqh02JU/rCZ7Aq8TLkG3bfR+E=
  • Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
  • Sender: plug-bounces@lists.phillylinux.org
  • User-agent: Thunderbird 1.5.0.10 (X11/20070403)

Amul:

You could try using FPDI (http://www.hotscripts.com/Detailed/39165.html) to read the PDFs in PHP, then use FPDF or TCPDF (http://www.hotscripts.com/Detailed/62199.html) to generate the new pdfs, with the form info filled in.

I have used FPDF to generate pdfs, it's quite simple. I have not used the other two libraries.

The advantage of using these libraries is that they're in PHP, so they're "cross platform and allows for web interactions".

Cheers,

Shameel

TuskenTower wrote:
Has anyone ever used a PDF library to dynamically insert text into a PDF?

My uncle pulls PDFs from various websites and fills them out for each
customer contract.  His customer information is pulled in via a web
form and hosted in a MySQL DB.  The PDFs don't change often and he is
looking for a way to skip filling in the forms by hand.

I have done some quick Google searches and came up with various
libraries, but nothing that says in big letters, "this library lets
you insert text into an existing PDF."  I am looking for something
that is cross platform and allows for web interactions.

thanks,
Amul
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug


-- Shameel Arafin Studio Moqa LLC www.moqa.com

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug