Set a text field to Base64Encode (Tabe::PDFcontainer). Use [ "data:application/pdf;base64," & TextField ] in the webviewer?
Other option is a JS PDF Viewer in a web viewer. not sure how that will work for printing.
"data:application/pdf;base64," & TextField
Is not actually working for me. Hmmm.
Hi Thanks for the thought BigTom
I'm trying with MBS Webview functions - But I can't automate the print (I get dialogue) or set the printer etc via script this way.
I'll keep pluggin
We use the Scribe 2 plugin from 360Works to accomplish this. Combining PDFs in FileMaker is only a native function when FileMaker itself is generating the PDFs, not while stored in containers. There have been other threads on this site regarding some non-plugin workarounds though.
Thanks for the input.
Could you define 'combining PDFs' .
Can scribe 2 access the PDF from within the container and print it without a dialogue (or use scripted page setups from a native print setup script step)?
I need to be able to select from 1 of 3 printers via calculation and print without dialogue.
I can't see any print functions in Scribe 2.
Does loading the document allow you to print it using native FM script step?
Scribe will do a lot of things but it doesn't involve printing. One of its features is to take multiple PDFs stored in various container fields and combine them into one and store that in a container field. You can then, using native FileMaker scripting, open up the new PDF from the container field and print it using a locally installed PDF viewer application such as Adobe or Preview.
There are other plugins available for robust print dialog capabilities, though I thought the key aspect you were looking for was combining separate PDFs into one PDF. I apologize if I misunderstood.
I wonder if something like this might work?
- export pdf from container - $Path
- use 'send event' to somehow change the default printer via command line
- use 'send event' to print the pdf (via command line?) or "pdoc"; $path
If anyone could fill me in on the calculated / script command line content that would be appreciated.
Also the Send Event parameters to select for Windows for both the above.