Jump to content
Sign in to follow this  
Asu

fmp17 Opening PDF files in containers

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?

Share this post


Link to post
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).

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By flutegirl
      To try to explain the setup as succinctly as possible:
      Database is running on a FM17 Server (on a Windows virtual(?) machine... Our IT department handles that part).
      The FM database does a number of imports every morning from our primary (4D) database, using an ODBC driver, but I have not found a way to have those imports run successfully from the server, so I have them running on an instance on a secondary user account on my desktop computer.
      The scripts are triggered by adding a record to a table, which is checked every five minutes using an OnTimer script.  I run a separate instance of FM17 on my user account so that I can use the database even if there is an import running.
      This solution has been working (fairly) well for a number of years, but last week, my desktop computer was updated to Mojave (10.14.6), and since that upgrade, it seems that the imports on the secondary account will only run while that user account is active.
      1) Is anyone else doing anything similar, where they have an instance of FM running on a separate user account?
      2) If so, have you had any trouble with Mojave, or have suggestions on what may be going on?
      3) Any suggestions on how to fix this?  My initial thought is to just open the database using FMP on the Server system and try having the imports run from there, but am concerned that might also have problems.
      Any suggestions would be greatly appreciated.
       
    • By OneStop
      I have a field called Price. I need to create another field called calculated price that will add a percentage depending on the value of the original Price field.
       
      Example:
      If the Price is $100.00 or more Subtract 10% from the price
      If the price is $10.00 or less Subtract .25%
      If the Price is between $10 and $50.00 Subtract .5%
      If the Price is between $50 and %100.00 Subtract .75%
       
      and so on and so on...
      So if I have a record with a Price of $1.00 the calculation will fill in the Calculated Price field with $.75
    • By 360Works
      Scribe 4 - FileMaker OCR Scanning Demo Video
      Today, we wanted to share a practical way to use the new FileMaker OCR and PDF integration features in Scribe 4. If you have a stack of paper with information you need to access from FileMaker, you can easily automate this process with Scribe.
      In this demo video, we will show how you can scan in a stack of paper and extract the text (using OCR) into FileMaker, and have it on individual (spliced) PDF pages.
        Watch the Video   Stay updated with 360Works

      Questions? Email: plugins@360Works.com
       
    • By BAleiHi
      I have a layout calculation that looks like:
      Round(If($$NoGPABump = 1;Classes::GPANoBump; Classes::GPABumped);2)
      In most instances, this rounds the appropriate value to 2 decimals  and displays those two digits.  But on occasion, it displays only one decimal as in this one:
      .  Instead I want to see 4.20.  If I round to, say, 4 decimals, it works properly: .  Rounding to 3 digits gives 4.199.  How do I get the trailing zero to show up?  This seems to be consistent for all data that rounds to a last digit of zero.  Is this a bug?  Is there a workaround?  Thanks,
       
    • By vinnygi
      I have a layout with a number of button bars, all with the same style. Each button is set to have an inner shadow and a white fill on Hover. For any of the buttons that call a popover, after the popover is closed, the hover shadow no longer works, but the fill still changes to white.  I've tried adding a refresh object script trigger when closing the popover, but that doesn't work.
      Some of the buttons are currently placeholders, which just call a script that exits itself so I can test the hover state.  Those work fine.
  • Who Viewed the Topic

    1 member has viewed this topic:
    eyepro 
×
×
  • Create New...

Important Information

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