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.

Creating PDFs in Runtime

Featured Replies

Has anyone come up with a usable method of scripting PDF creation and automated printer selection in FMP runtimes? I've noticed that both Affiler and Shubec have left the business, amnd MyFMButler apparently doesn't do encryption. (I've been using Affiler with some custom scripts done with AutoIT, but Aff won't install on Vista.) I've found some other PDF generators that look promising, but they use a COM interface, and I'm not a programmer.

  • 2 weeks later...

I just suggest to users who are not on Macs to use cutePDF. It's very hard to script this, because you don't have any idea what their PDF printer name is.

  • Author

Unfortunately, I need to script everything. My runtime currently switches the printer to the PDF (I can control the printer name) prints the document, encrypts it using a stored hidden password, then attaches it to an email and sends it out to a predetermined address. Since most of my users are very basic, I need to do all of this for them.

I looked at CutePDF, but it doesn't appear to be scriptable. They do have another program that I'll have to check out.

Thanks

If you know the printer name (that is the installed cutePDF printer), you can script this easily. FM10 remembers printer names in the print script step.

I ship a runtime to unknown users and so cannot determine the installed printer name.

  • Author

That will help. I wrote this runtime in FM8, so I had to write a little windows script that allowed me to change printers within 8. Now, the users select which printers they will be using (I let them have a Printer, Fax and PDF printer) and after rinning a setup script that saves the names, the print script changes the printers. The problem comes in with scripting the encryption, as well as the file names and locations.

Well, the file names and locations (paths?) are easy to script. However, I do agree that the PDF encryption will be a function of the pdf writer.

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.