ksublondie has asked for the wisdom of the Perl Monks concerning the following question:

I feel like I'm on a wild goose chase, but I'm on the quest for a module that will let me create from scratch a dynamic adobe reader viewable (pdf/ps/whatever) fillable form on the fly. Since these files will be accessed through a web browser, I want to be able to output the data as a string without having to save the file.

I've used the PDF::API2 module in the past, but it doesn't look like it allows for form fields. There are lots of html to pdf modules, but I haven't found any yet that have form support. Is there something out there that does what I'm wanting to do?

Thanks in advance.

Replies are listed 'Best First'.
Re: In search of pdf form module
by jakeease (Friar) on Apr 26, 2013 at 06:02 UTC
      Thanks for the response.


      "...This module could be used when you want to mass produce similar (but not identical) PDF documents and reuse templates..."

      Unfortunately, these pdf's aren't going to be similar or massed produced. I need to develop each one from scratch, not from templates. I suppose I could develop templates on the fly, but I don't want to mess with files, just string data.


      I'd seen that one, but for the life of me, I can't figure out what it does or how it works! I'm needing to create fillable forms with radio buttons, text fields, dropdown boxes, checkboxes, etc and this module only has 4 methods, 2 of which are constructors. I'm not sure what "forms" it handles, but if it does what I'm wanting to do can you enlighten me?

Re: In search of pdf form module
by rpnoble419 (Pilgrim) on Apr 26, 2013 at 14:01 UTC

    I use CAM-PDF. It works quite well for this task. You need to be careful that the PDF form is designed to handle amount of text data that may be input via the program, otherwise the PDF form will not display all of the text.

      Unless I'm not understanding the documentation correctly, it doesn't look like it allows for creation of pdf's from scratch. Although, it looks perfect for manipulation existing forms. Am I missing something?
        That is correct. Don't create the PDF file in PDF::API2. I have not been able to get that to work with CAM::PDF...
Re: In search of pdf form module
by jakeease (Friar) on Apr 26, 2013 at 18:15 UTC