Accessing a pdf rendition of the form utilizing the API

  • Profile Image
    pjharrington62
    Asked on July 31, 2017 at 02:05 PM

    Hello,

     

    We are currently evaluating jotform to integrate with our content management solution.  The one requirement that we have not been able to confirm is being able to get the rendition of the form in a PDF format using the API.  The "Get" on the submission resource does not appear to support the ability to retrieve it as a PDF.  There does appear to be a url (http://www.jotform.com/pdf-submission/{id}) that does download the file but it appears that it only works when there is an active session.  Any help would be appreciated.

     

  • Profile Image
    Kiran
    Answered on July 31, 2017 at 04:19 PM

    I am not sure if I understand your query correctly. Do you want to generate the PDF submission report using API? I don't this it is possible using API. The link that you have provided is to generate the PDF submission report using the existing submission ID of the form.

    Let us know if you are referring something different. We will be happy to assist you further. 

  • Profile Image
    Mike
    Answered on July 31, 2017 at 09:59 PM

    Kiran,

    Thank you for your response, yes I was inquiring if you can generate the PDF report using the API. If I understand, you do not believe the API supports the generation of a PDF report.  So if I am clear the only means to get a PDF of the submission is via a link that includes the transmission ID such as https://www.jotform.com/server.php?action=getSubmissionPDF&sid=37734639099873262XX&formID=720875539441XX.  

    Is it also true that if the "Require Log-in to see submissions" is checked in the privacy settings the user will have to login to Jotform before viewing the PDF.  If this setting is not checked the rendition is publicly accessible.

    You are right, when the 'Require log-in to see submissions.' option is enabled the Submission PDF link will not work without authentication.

    https://www.jotform.com/server.php?action=getSubmissionPDF&sid=37734639099873262XX&formID=720875539441XX

    For API related questions you may contact our API Team at api@jotform.com.

    We also have an option to email Submission PDFs as attachments.