Is it possible to generate a PDF document using the API?

  • Thomas Pane
    Asked on December 30, 2020 at 6:40 PM

    The company I work for would like to use JotForm within our SAAS platform called MorTrack, to try and fast track a solution to a problem we are facing. I have a few questions regarding your APIs and overall software, but first let me illustrate our problem.

    The industry we provide SAAS for requires a lot of redundant data collection. We already have software and forms in place to collect the data and store it. However, some of the data fields are unnecessary to some companies and every single company wants to display the data in a different format/order. Basically they all want the ability to customize forms that are generated. We are searching for a better solution instead of building custom forms for each companies we serve.

    We think JotForm could be the answer to our problem.

    We want to send our clients to JotForm to structure their forms the way they want to. Then we would populate their forms during each new submission using JotForm APIs.

    POST /form/{id}/submissions

    Is there a way we could get a copy of the PDF(s) that is generated from the API submission, so that we can store it as well?

    I know you offer an integration to add the PDF submission to dropbox, but that solution doesn't quite satisfy what we are looking to do.

    If there is no way to return the PDF through the API call, I would like to suggest that you build out an integration with Amazon S3. I think it would provide much more flexibility for developers. Our company would likely be willing to provide developer resources to help complete the integration if you were interested.

  • roneet
    Replied on December 30, 2020 at 10:19 PM

    You can generate the PDF via this API call:

    https://www.jotform.com/server.php?action=getSubmissionPDF&sid=SubmissionID&formID=FormID

    Just replace the bold text (SubmissionID and FormID) with the actual submission ID and form ID that you retrieved through API.

    Let us know if you have further questions.

    Thanks.