Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Download a PDF in a web viewer via script

Featured Replies

I have a PDF being displayed in a web viewer. I would like to download that pdf to a specific location via script. This is on a mac and plugins are an option.

History and caveats:

This file is generated by a servlet. The servlet tracks the session of the web viewer and prevents opening the URL from anywhere but the webviewer. I cannot send the URL to Safari, use CURL (if that's even possible normally), scriptmaster's get URL, etc. because they all make their requests outside the webviewer and so the servlet refuses the request.

I can, using the acrobat plugin, download the file manually using the save to disk, but the point is to automate this. I can also change the safari plist to disable PDF support forcing all PDF URL's to automatically download but then I will not be able to display PDFs within the solution for other purposes.

What I would like to do is grab the current content of the web viewer, a pdf, and save it to a directory. I am hoping one of the uber-techies knows a way to get at that content.

I think you need this:

http://www.monkeybreadsoftware.de/filemaker/

They have some functions that allow interaction with webviewer content

  • Author

Thanks for the reply.

I'm using MBS currently but there was no function that could grab the contents when it was a file. However I wrote to Christian at Monkeybread Software about what I needed and he hooked me up with a brand new function in a matter of hours. Now I can pull the file right out of the web viewer. Very sweet!

Again, props to Christian for his lightning fast response and totally hitting the nail on the head!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.