Jump to content
Server Maintenance This Week. ×

Opening PDF files in containers


This topic is 1934 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hello -- I would like to open pdf files that are stored in a secure external manner. 

Only the first page of multipage files show in a FM container window (if I';m not mistaken) so I am wondering about using Preview (Mac, of course). I can retrieve the file path to the secure file by processing the text output of the container file, and then use it as a variable filename in a Send Event script step,  but Preview cannot open it.

Any suggestions?

Link to comment
Share on other sites

2 hours ago, Asu said:

Only the first page of multipage files show in a FM container window (if I';m not mistaken)

If I am not mistaken, you can format the container field as interactive container. Then you'll get an instance of Adobe Reader inside the field, allowing you to scroll and/or page through the PDF document.

In order to open the PDF in Preview, you would have to export it first. While you have it encrypted in external storage, Filemaker is the only application that can open it (that is the purpose of the encryption).

Link to comment
Share on other sites

Well I would think it would decrypt it then pass in on to another app. 

But if I'm not mistaken, I understand what you are saying so thank you for your suggestion

 

Asu

Link to comment
Share on other sites

1 hour ago, Asu said:

I would think it would decrypt it then pass in on to another app. 

While it's decrypted, it exists only as the contents of the container field in the current record. These contents are not accessible to other applications. Exporting the field is a way to make them so. Perhaps there is another way to pass the contents using AppleScript - I am not sure if and how that would work. In any case, passing the path to the file will not accomplish anything, because the file does not live there.

Link to comment
Share on other sites

Just out of curiosity, I tried the following: 

  1. Click in the container field;
  2. Select 'Copy' from the Edit menu;
  3. Switch to the Preview application;
  4. Select 'New from Clipboard' from the File menu.

This will open a copy of the PDF in the Preview application as a new, unsaved document. But again, this should not be required if you format the container as optimized for PDF.

 

 

 

Edited by comment
Link to comment
Share on other sites

This topic is 1934 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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