I'm trying to post data from an html form into a PDF Form. The PDFs already are created (from state gov't) and really can't be built dynamically on the fly (they're way to complicated in layout). What I need to do is post data from a html form to any pdf form. I know I can do this by reading a URL from within a PDF using javascript embedded in the PDF, but the problem lies in the fact the end users aren't to bright, and they will be recieving the PDFs from the state and putting them on the server. Trying to teach them to embed javascript in an already created script would be very, very hard.
I took a look at PDFLib and it doesn't seem to allow me to do this. The only other way I know of is to use ASP and acx using Adobe's sdk, but I cring at doing that because I want to use apache/linux. (activeX, ASP, isn't that a sin?) Any ideas out there?

    I don\'t know at all if it\'s feasable but
    what about :

    1) getting all the data you need from a
    HTML form
    2) basically do an ereg_replace() in the
    PDF file
    3) When all replacements are finish, do
    what you want with the new \"completed\"
    PDF file

    The replacements suppose that your PDF
    file had some strings like <<USER_NAME>>
    inside \"in front\" of the input tag of
    the PDF form ; and if it has not that
    kind of things, then you must add it manually
    the first time , when you decide to include
    that PDF file in your system.

    I don\'t know the internals of PDF file, especially with PDF form, but there\'s surely
    a place where user answers are supposed to be
    stored (?)

      Write a Reply...