Jump to content
Server Maintenance This Week. ×

View PDF in Webviewer from Container?


IplayWoW

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

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 4 months later...

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.

Link to comment
Share on other sites

  • 2 years later...

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