www.webdeveloper.com
Results 1 to 4 of 4

Thread: Edit pdf files using PHP

  1. #1
    Join Date
    May 2010
    Posts
    24

    Edit pdf files using PHP

    Hi!

    I am trying to edit a PDF file using a php script.

    I already have the pdf template with just a string to substitute. This string is <<name>>.

    In the php script I am using str_replace () but to substitute the string <<name>> with a variable which contains my name, but it does not change anything on the template.

    I do not want to use PDFlib or similar, I prefer stay on the open source side.

    Any idea?

    Many thanks!

  2. #2
    Join Date
    Jul 2010
    Location
    /ramdisk/
    Posts
    865
    I solve these problems with a serverside include to python and pass arguements like -n <<NAME>> and -p <<PATH TO TEMPLATE>> and -r <<RETURN NAME>>

    the details are very dependent on which programming languages your know, but this is how I would solve that problem.

  3. #3
    Join Date
    May 2006
    Location
    the netherlands
    Posts
    454
    Free Scripts (PHP, Javascript, MySQL), homemade in the Excudo Devshed
    Create your own personal Startpage for free

  4. #4
    Join Date
    Mar 2010
    Location
    Singapore
    Posts
    367
    Quote Originally Posted by giovanni.85 View Post
    Hi!

    I am trying to edit a PDF file using a php script.

    I already have the pdf template with just a string to substitute. This string is <<name>>.

    In the php script I am using str_replace () but to substitute the string <<name>> with a variable which contains my name, but it does not change anything on the template.

    I do not want to use PDFlib or similar, I prefer stay on the open source side.

    Any idea?

    Many thanks!
    It is strange PDFlib at PECL is not really free. I still thot pecl.php.net is like Perl CPAN where you can find free modules to use.

    Anyway try http://pear.php.net/package/File_PDF File_PDF is another PDF library I think should be free.

    Perl CPAN equivalent for PHP

    http://pecl.php.net
    http://pear.php.net

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles