We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14906
    • 9 Posts
    Ok, this might be more complex that I hope, but I have a pdf form that I want to be able to pass variables to. I’m making a website for a guy who wants a bill of sale that he can print out, but wants some of the fields automatically generated from info on his site (price, model #, etc.)

    How would I go about doing this in modx?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      It doesn’t have to be a PDF, does it? It can be HTML, with a very simple template. I’ve done it that way several times. Just print it out from the browser (or if he’s got a Mac, he can print -> PDF -> Save As PDF).
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 14906
        • 9 Posts
        They would prefer a pdf, so they could also use a blank one without having to using their website and have it all look exactly the same. They are difficult. undecided
          • 6228
          • 249 Posts
          Check out tcpdf, a popular open-source class for generating PDF documents. I’ve used it before to import and assemble PDF documents from multiple sources, and I’m sure it can do what you are requesting.
            lo9on.com

            MODx Evolution/Revolution | Remote Desktop Training | Development
            • 12028
            • 152 Posts
            Or maybe the php class from http://fpdf.org/ combined with a snippet can help you.
              - A small step for mankind, so why not take two...

              Working with web production, graphic design/workflow, photo and education - but are trying to get a life in between!
              • 4385
              • 372 Posts
              Do you have acrobat pro? You could add form fields to your pdf and generate a fdf from the data from modx.

                DropboxUploader -- Upload files to a Dropbox account.
                DIG -- Dynamic Image Generator
                gus -- Google URL Shortener
                makeQR -- Uses google chart api to make QR codes.
                MODxTweeter -- Update your twitter status on publish.
                • 4172
                • 5,888 Posts
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!