Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

View PDF in Webviewer from Container?


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

Recommended Posts

Posted (edited)

I have a container field that stores a PDF file and I want to be able to view that container WITHIN Filemaker without the user having to export it. Is this possible?

Is it possible to view a container/field from the web viewer?

*I'm just thinking outloud here* I was thinking maybe having a script that sets a ~Temp container to the PDF I want to view, going to another layout with the Webviewer, and have the webviewer pointing to that ~Temp container... if that's even possible. I'm not sure.

On another note, the file is stored completely within the container, not as a reference. I think this is where the problem occurs.

I know you can view it if the file is stored as a reference... also I would like to avoid exporting the cotainer contents to the user's temp folder and point the web viewer to that file

Thanks ahead of time.

Edited by Guest
Posted

Geoff's blog will help: http://sixfriedrice.com/wp/filemaker-9-tip9-web-viewers-without-the-web/

However, the technique doesn't support embedded PDFs. imho, you don't want to do that anyway. Your file will grow very large and backup will take much longer.

Posted

You're right, and I REALLY don't like storing the files in the container but we have Remote Users in a mixed Operating System Environment... it makes for a big mess when using references for FileMac / FileWin

Posted (edited)

Really? Have you considered SuperContainer? or an FTP server for the docs?

Edited by Guest
Posted

In my search I came across this example but I didn't understand how to deploy it.

I tried it earlier and all it did was display the name of the File in the webviewer, as opposed to the actual file itself.

Posted (edited)

Ya, I've wanted to use an FTP server for ages now... but

1) My boss is Filemaker crazy... everything has to be integrated into one, easy system.

2) The users (my boss) would have difficulty navigating to an FTP server. So it wouldn't work.. Haha.

What MIME should I be using?

I have [ "data:application/pdf," & File::Container ] and I keep getting some error message saying "File doesn't not begin with '%PDF-'"

Edited by Guest
Posted

You cannot use the data html approach with an embedded file. Reread Geoff's blog. See his answer to Mike.

They wouldn't need to navigate to the FTP server, your script would fetch the file using FTPeek plugin from 360.

Call 360 and see what they recommend.

  • 4 months later...
Posted

In case you are still interested, this is how I do it on a PC:

Base64Encode the PDF (e.g. using 360Works ScriptMaster) and store the result in a text field. Link to this field from the WebViever with "data:image/pdf;base64," & theEncodedFieldName. Then, dependent on the Adobe Reader preference settings, it will show in the WebViewer directly, or open up the Reader in a separate window.

  • 2 years later...

This topic is 4246 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.