From:             
Operating system: Linux 
PHP version:      Irrelevant
Package:          PDF related
Bug Type:         Feature/Change Request
Bug description:FDF/XFDF merging PDF Form on server.

Description:
------------
I have open this ticket to request a function/feature that I personally
belive will benefit all the PHP community out there.

PDF has become the most popular way to universally provide and transfer
reports, invoices, letters, CC statements and records; PHP needs an easy
way to dynamically update PDF documents.

One way to update a PDF form template is by using FDF/XFDF plain text
files. I am aware of the current PDF and FDF functions currently available
in PHP, but none offers local rendering.

I've done my homework. A third party utility ( pdftk ) can be used along
with PHP to obtained the desired results, and it's fairly easy. The
following link is the original post that gives the code example:

http://stackoverflow.com/questions/1389964/merge-fdf-data-into-a-pdf-file-using-php

The only downside of this approach is the lack of support for pdftk in
shared enviroments, adding this feature to PHP will likely make hosting
companies to include it in their compilings. PHP is my prefered way of
coding the web, adding cool tools and features will ensure PHP stays atop
popularity.

Angel Cool





Test script:
---------------
header('Content-type: application/pdf'); 
header('Content-Disposition: attachment; filename="Statement.pdf"'); 
passthru("pdftk Template.pdf fill_form UpdatedFieldsUsingPHP.fdf output -
"); 
exit; 


-- 
Edit bug report at https://bugs.php.net/bug.php?id=61647&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=61647&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=61647&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=61647&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=61647&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=61647&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=61647&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=61647&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=61647&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=61647&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=61647&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=61647&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=61647&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=61647&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=61647&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=61647&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61647&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=61647&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=61647&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=61647&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=61647&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=61647&r=mysqlcfg

Reply via email to