Jump to content
Sign in to follow this  
scottknz

Save Generated PDF files to CASPIO database

Recommended Posts

Hi,

We are in the final stages of a project where users are able to download a PDF version of the responses they have submitted. The PDF document is several pages long and is designed as a professional customised template. We want to be able to save all users PDF files in the CASPIO database so they can access the files in the future without having to generate them again from the CASPIO data page. We also want to be able to mass download all PDF files from all users at once  (over 900 members). This is complicated by the fact that parameters cannot be passed to the PDF generator within CASPIO.  We would like to know if there is a solution for using JavaScript that will generate the PDF file (perhaps as a standard data page) and then when the download link is pressed it downloads the file to the users hard drive, but also uploads the file to the CASPIO database? 

I've got as far knowing this command will allow different types of files that can be uploaded:

<SCRIPT LANGUAGE="JavaScript">
document.getElementById("InsertRecordfilename").setAttribute("accept","application/pdf");
</SCRIPT>

Is it possible to upload the present data page using a similar command?

Thanks

Scott

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...