![]() Using PHP to build a PDF is a great way to automatically create and email PDFs from FileMaker Server. ![]() Now you have everything you need in order to create a PDF using FileMaker Server. ![]() The Insert from URL script step will enter the content of your PHP file, which is a PDF, into a specified container field. ![]() The URL needs to be the web address of the PHP script. Use the Insert from URL script step to call the PHP script. The final step is to write a server-side script in FileMaker that will run the report. Once you are finished building the report, you will use the FPDF Output() function to output the PDF as a file back to FileMaker. Check out the FPDF tutorial page for a quick tutorial on building PDFs with PHP to get a better understanding on how to use this library to its full potential. You will need to use Custom Web Publishing to bring in any data that you may want within the report that is in your FileMaker database.Īs you gather your data from FileMaker, you will build your PDF by setting the X and Y coordinates and the font of each object in the PDF. Because PHP is creating the entire PDF, all the business logic to create the report will need to be within PHP. The next step is to write the PHP script that will create the PDF and output it back to FileMaker as a PDF. Once you have downloaded FPDF and placed it within your web server, you will then need to create your report using PHP and the FPDF library. I recommend using the Free PDF library as this article will assume you are using the FPDF library. First, you will need to download a PHP library that will allow you to create a PDF using PHP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |