#Baseelements export filepath pdfNormally, you would need to download all PDF files to the client via container fields, export them somewhere where they can be manipulated and then combined and finally re-uploaded the result to another container field. First, this technique uses the Perform Script on Server script step (a.k.a.Now let’s get to building this thing! Can we build it? Performing the script on the server avoids hair-pinning and doubling the amount of network traffic required. Next, we will be using the now open source Goya BaseElements (thanks Goya!) plugin installed on the server.PSOS) so we already assume that your environment includes FileMaker Server. This means that once we are done, clients won’t need to have the plugin installed, but for development, we will also have it installed on FileMaker Pro. #Baseelements export filepath proFinally, we will be integrating with a freely available and popular server-side program for manipulating PDFs, PDFtk server.Īlso recommended is the use of FileMaker Pro Advanced for development, but this is not a requirement.This version provides a command line interface which is fine for our server-side implementation. PDFtk is also capable of doing much more than combining PDFs, but for this example, that will be our end result. PDFtk also supports handling different size pages of PDFs and combines them as a single document.Īlso of note, this example uses FileMaker Server installed on Windows Server. #Baseelements executesystemcommand windows# All the pieces involved will also work on OS X, but the shell scripting would be different. PSOS Setupįor the script that runs on the server, exporting files to the Documents folder that resides in the FileMaker Server Data folder is the safe place to put things and avoid potential permissions issues, so we will use that. To avoid multi-user conflicts that will potentially use the same file names to when performing the scripts, we can create a unique folder on the server that represents the user. Once that is done, we can work in that directory until done and then clean up after ourselves by removing the folder at the end of the script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |