Downloading PDFs

  • Profile Image
    Pane_Thomas
    Asked on March 23, 2021 at 01:29 PM

    After creating a submission via API, I need to get a copy of the PDF back to my server. I reached out to support a while ago and they told me to use this URL:

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

    This seems to be working for me, except it is returning a newly generated PDF instead of the original that was uploaded. Is there a URL to download the original like so:

    1616520505_605a25399f43f_

  • Profile Image
    Yuta_J
    Answered on March 23, 2021 at 08:27 PM

    Hello,


    Thank you for reaching out to us. Please allow me a little time to look into this and will get back to you shortly.


    Please let us know if you have any other questions.

  • Profile Image
    Yuta_J
    Answered on March 23, 2021 at 08:53 PM

    Hello again,


    Thank you for waiting for me. Please kindly try out the following link to see if you can get PDF files without generating new PDFs. Please try out on your end and let us know if you have any questions.


    https://api.jotform.com/pdf-converter/{formId}/fill-pdf?download=1&submissionID={sumissionID}&apikey={apiKey}


    Please let us know if you require further assistance.

  • Profile Image
    Pane_Thomas
    Answered on March 24, 2021 at 11:27 AM

    It looks like this will work for us. Is there an API endpoint I can call to determine if a form was created using a PDF upload or not?

  • Profile Image
    Yuta_J
    Answered on March 24, 2021 at 01:07 PM

    Hello,


    I've checked API Documentation and it seems there is no instruction mentioning this. For further enquiry on API related issues, please contact our API team for the support. api@jotform.com


    Guides:

    API Documentation


    Please let us know if you require further assistance.

  • Profile Image
    Pane_Thomas
    Answered on March 24, 2021 at 01:22 PM

    Yeah I didn't see anything in the API documentation either, but then again the endpoint wasn't in the API documentation either:

    https://api.jotform.com/pdf-converter/{formId}/fill-pdf?download=1&submissionID={sumissionID}&apikey={apiKey}

  • Profile Image
    Yuta_J
    Answered on March 24, 2021 at 03:25 PM

    Hello again,


    Please kindly reach out to API team to see if they could assist you on this. We seem not to have knowledgebase available for this at the moment. api@jotform.com


    Please let us know if you require further assistance.