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.

Saving documents as PDF

Featured Replies

Hello all,

just a quick question: is it possible to save Word documents in a Container field as PDFs? Does FM allow for that?

Thanks.

No, but there are few easy ways to do it, including integrating with Microsoft's APIs.  If you store the Word doc on OneDrive it's as simple as an API call to get MS to convert the file for you and get the resulting PDF in a container.

In the screenshot below the "convert to PDF" button on the right will do that, it will tell MS that this word doc that is on OneDrive (doesn't even have to be on my machine yet) needs to be converted to PDF.

If you happen to have Office 365, all the APIs are right there and they are pretty fantastic.  Along those lines: sending out an HTML email?  Incredibly easy with their APIs, no fiddling with plugins or complex SMTP commands.

There are also command line utilities that you can use to create PDFs or you can talk to the Word application interfaces of your local Word install.  For both of those you'd use the FM Send Event script step to execute the necessary code outside of FM (On Windows).  On macOS you also have the option of using "perform applescript"

api pdf 2020-02-07_16-41-34.png

Edited by Wim Decorte

  • Author

Thanks Wim for your detailed response.

I will explore each aspect of your response carefully. But I must say, at first glance your suggestions appear way beyond my knowledge and abilities in front of a computer screen. For instance, I have no idea what integrating with Microsoft's APIs means...

But a couple of questions come to my mind: 1) I understand I'd have first to transfer to OneDrive all the Word documents to be converted that are now in my FM database , correct? 2) Once transferred, could they all be converted into PDFs as a batch, or would they have to be converted one by one?

 

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.