PDF embedder? Where to place the file and create the patch

  • rogero
    Asked on June 14, 2016 at 6:34 AM

    Hi,

    Do I need to get an ftp sight where I place pdf file or can I somehow dowloaded it to my account and refer it to that link?

     

    Roger

  • Charlie
    Replied on June 14, 2016 at 8:42 AM

    You need to upload your PDF file on a web server or on a cloud storage that allows you to get the absolute path URL of the file. After getting the file URL, paste it inside the PDF Embedder widget's setting. The straightforward way for this, as you already know, is to upload it on an FTP server, you can get the absolute URL path of the file and easily paste it inside the widget.

    I hope that helps.

  • rogero
    Replied on June 20, 2016 at 10:54 AM

    Is it possible to use dropbox links for this, I tried it but it looked lie it did nit work. Did I do it wrong or?

  • Charlie
    Replied on June 20, 2016 at 11:34 AM

    You need to embed the full path of the download link. I believe Dropbox does not show the full path of the file by default, and it has it's own preview window.

    You can follow this article on how to make the images hosted using Dropbox: https://milanaryal.com/2015/hosting-images-with-dropbox-on-your-website/. It's the same concept, but in this case we want to embed the PDF file stored in Dropbox to the PDF Embedder widget.

     

    Here's an example form: https://form.jotform.com/61714177007957 

    Here's my Dropbox share link:

    https://www.dropbox.com/s/sey3uwvc5c8egjr/Test.pdf?dl=0 

    This is how it looks like after we edit:

    https://dl.dropboxusercontent.com/s/sey3uwvc5c8egjr/Test.pdf 

     

    We basically need to change the www.dropbox.com to dl.dropboxusercontent.com. We also need to remove the ?dl=0 at the end of the link. We can now embed that link to the widget.

    I hope that helps.

  • rogero
    Replied on June 21, 2016 at 7:42 AM

    Got it working, thank you.

    If I would like to ad it as a link? I used the "text" widget and inserted the same link as for the pdf embedder but when I do that it automatically ads some before so the url becomes like this:

    https://eu.jotform.com/dl.dropboxusercontent.com/s/9hzcsa9ep15ktlv/Unit%20Selector%20documentation.pdf

    How can I get the file link to work?

    Roger,

  • Charlie
    Replied on June 21, 2016 at 9:16 AM

    You need to declare a protocol on your URL when you add it on a "Text" field.

    Here's how:

    1. Add a "Text" field, enter a text, highlight that text and click the insert link button.

    PDF embedder? Where to place the file and create the patch Image 1 Screenshot 30

    2. Here add the link to your PDF, BUT make sure you add a protocol at the beginning. add https:// on it.

    PDF embedder? Where to place the file and create the patch Image 2 Screenshot 41

     

    I hope that helps.

  • rogero
    Replied on June 21, 2016 at 10:55 AM

    Excellent :-)

  • Charlie
    Replied on June 21, 2016 at 11:06 AM

    You are welcome. Should you need our assistance again, feel free to open a new thread here in the forum.

    Thank you.