FDF/PDF

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jay Jarrett

    FDF/PDF

    I'm looking for information regarding FDF file generation using form output
    from php.
    What I would like to do is:

    1. Enter information by form on a page via a browser.
    2. Store this info in a MySQL database.
    3.Call this info to populate a preexisting FDF file.
    4. Output this back via browser by means of PDF.

    For example: I would create a PDF of an invoice (or whatever), then make
    form fields in the PDF using Acrobat, and export an FDF file.

    %FDF-1.2
    %âãÏÓ
    1 0
    obj<</FDF<</F(PDF_TEST.pdf)/ID[<6a45115bd7bdbd 3cf8b98e9e1720e 737><603ebdf0c8
    fce94f8336817c6 bf5df95>]/Fields[<</T(<Name>)/V(<variable_Nam e>)>><</T(<addre
    ss>)/V(<variable_add ress>)>><</T(<info>)/V(<variable_inf o>)>><</T(<phone>)/V
    (<variable_phon e>)>>]>>>>
    endobj
    trailer
    <</Root 1 0 R>>
    %%EOF

    The fields with "variable" in the name will be populated with user input
    from PHP/MySQL.
    I'm sure this is very simple, but I am very new to PHP, so go figure.
    Basically, what I need is some help or examples on how to make form data
    populate a database, save it there, place the data into the FDF file, then
    save it to the server. Maybe even create the FDF file itself. I'm sure there
    are a number of ways to accomplish what I am trying to do.

    I have done this in Coldfusion, but I need this in PHP. Any and all help
    and/or comments regarding this will be greatly appreciated.


  • Justin Koivisto

    #2
    Re: FDF/PDF

    Jay Jarrett wrote:[color=blue]
    > I'm looking for information regarding FDF file generation using form output
    > from php.
    > What I would like to do is:
    >
    > 1. Enter information by form on a page via a browser.
    > 2. Store this info in a MySQL database.
    > 3.Call this info to populate a preexisting FDF file.
    > 4. Output this back via browser by means of PDF.[/color]



    Then all you need to do is save the FDF data to the datbase rather than
    a file...

    --
    Justin Koivisto - spam@koivi.com
    PHP POSTERS: Please use comp.lang.php for PHP related questions,
    alt.php* groups are not recommended.

    Comment

    • Jay Jarrett

      #3
      Re: FDF/PDF

      Thank you very much. I have been beating my head into the wall for this
      exact solution! I have been poking around and have found this in Coldfusion,
      but that route is costly, and not at all what I needed.


      "Justin Koivisto" <spam@koivi.com > wrote in message
      news:xl7Nc.610$ jz4.22585@news7 .onvoy.net...[color=blue]
      > Jay Jarrett wrote:[color=green]
      > > I'm looking for information regarding FDF file generation using form[/color][/color]
      output[color=blue][color=green]
      > > from php.
      > > What I would like to do is:
      > >
      > > 1. Enter information by form on a page via a browser.
      > > 2. Store this info in a MySQL database.
      > > 3.Call this info to populate a preexisting FDF file.
      > > 4. Output this back via browser by means of PDF.[/color]
      >
      > http://www.koivi.com/fill-pdf-form-fields/
      >
      > Then all you need to do is save the FDF data to the datbase rather than
      > a file...
      >
      > --
      > Justin Koivisto - spam@koivi.com
      > PHP POSTERS: Please use comp.lang.php for PHP related questions,
      > alt.php* groups are not recommended.[/color]


      Comment

      • Justin Koivisto

        #4
        Re: FDF/PDF

        Jay Jarrett wrote:[color=blue]
        > Thank you very much. I have been beating my head into the wall for this
        > exact solution! I have been poking around and have found this in Coldfusion,
        > but that route is costly, and not at all what I needed.[/color]

        heh - a google search for "fill pdf php" would have gotten you the
        answer quickly. ;) Anyway, hope it all works out well for you.

        --
        Justin Koivisto - spam@koivi.com
        PHP POSTERS: Please use comp.lang.php for PHP related questions,
        alt.php* groups are not recommended.

        Comment

        Working...