php - merging XFDF with PDF form to create final PDF server-side? -


this have currently:

  • user submits form data , gets "download pdf" link.

  • the link points script generates xfdf file on fly , outputs xfdf file after setting appropriate headers, etc.

  • the xfdf file points password-protected pdf, generic pdf form uses xfdf data fill in fields.

what like:

  • user clicks "download pdf" link.

  • xfdf generated on fly (no file written server).

  • pdf , xfdf merged server-side using generic pdf. contents of final pdf output user same xfdf originally.

  • neither xfdf nor final pdf ever saved server.

i looking @ pdftk, has few options dealing fdf/xfdf files, of assume a) original xfdf file exists file on server , b) resulting pdf should output file on server.

also, pdftk 4 years old.

i wondering if:

a) there newer equivalent pdftk out there?

b) if there way, using newer pdftk-like tool or using pdftk, use dynamic paths data never has exist in file form on server?

i learned built-in input/output streams using php:// i'm still fuzzy on how use it, maybe place this?

there commercial applications (you can find @ pdfstore.com), programming, can create own using same library pdftk using process pdf files: itext (http://itextpdf.com/) there .net version - itextsharp.

by doing that, can access data java or .net program, , never needs exist in file form, out of database directly.

you can recompile pdftk newer version of itext - way, can latest pdf processing capabilities , ease of use have pdftk. still need xfdf file however.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

linq to sql - Linq2EF: Return DateTime with a TimeZone Offset -

gdi+ - WxWidgets draw a bitmap with opacity -