Looking for information about ProntoForms features and functionality? Visit our Product Documentation Portal.
While not officially supported, this method of downloading all PDF documents is an effective tool where users need to download all the PDFs in their account. This method involves the use of Google Chrome, and the Web Scraper and OpenList external plugins.
About
It is possible export PDFs from all form submissions stored in the web portal. This workaround is useful if data destinations were not set up until after teams had submitted a number of forms.
Note: This will only download PDFs of form submissions that are still visible in the web portal. Submitted forms are only kept on the ProntoForms server for 45 days. Therefore, it is advisable that teams set up data destinations that will automatically backup their data.
Download PDFs of All Submitted Forms
- Install Google Chrome. Then, install and enable the Web Scraper and OpenList external plugins.
- Once they're all installed, access Developer Tools in the Chrome menu.
- Select the Web Scraper tab.
- Under Create new sitemap select Import sitemap.
-
Copy the following sitemap into the textbox Sitemap JSON.
{
"selectors": [{
"parentSelectors": ["_root", "pagin"],
"type": "SelectorLink",
"multiple": true,
"id": "drs",
"selector": "td:nth-of-type(1) a",
"delay": ""
}, {
"parentSelectors": ["_root", "pagin"],
"type": "SelectorLink",
"multiple": false,
"id": "pagin",
"selector": "li.nextButton a",
"delay": "4000"
}, {
"parentSelectors": ["drs"],
"type": "SelectorLink",
"multiple": false,
"id": "pdf",
"selector": "ul.iconActions li[style*=\"pdf\"] a",
"delay": ""
}],
"startUrl": "https://live.prontoforms.com/data",
"_id": "export_pdf"
}
-
Optionally Rename Sitemap export_pdf, and click Import Sitemap.
- In Chrome, log into the ProntoForms web portal. Under the Data & Analytics tab select Data.
- In the Web Scraper plugin, select Sitemap (export_pdf) and click Scrape.
[top] - Ensure popups are enabled, and then click Start Scraping.
Note: Do not close the popup window that appears as this will cancel the scrape. - Once the scrape is complete, export this list by selecting the Sitemap (export_pdf) tab, clicking Export Data as CSV, and then selecting Download now!.
- Open the CSV document from your computer's Downloads folder.
- Copy the URLs from the "pdf-href" column.
- In Google Chrome, click the OpenList plugin icon and paste the list into the text area. (If you have a large list of URLs it is recommended that you add them in batches of ~200 or less.) Click Open.
Note: New tabs will be opened as the files download. Do not close them. They will close automatically once the files are successfully downloaded. - All PDFs will appear in your computer's Downloads folder.
Comments
1 comment
For our business case it would be helpful if the downloaded pdf's have been named by Form Submission Name - this would be much easier from archiving point of view a look up for the document.
Please sign in to leave a comment.