Solved

Export Field To PDF FM

Posted on 2013-12-06
3
634 Views
Last Modified: 2013-12-08
What is the best way, if possible, to export the field contents and save the contents into a PDF format?
0
Comment
Question by:PachecoPrimo
  • 2
3 Comments
 
LVL 4

Assisted Solution

by:historychef
historychef earned 500 total points
ID: 39703383
Use the Save Records as PDF script step (available in FMP 8 and later). Create a layout containing only the field(s) you want to export, then go to that layout and isolate the records you want to export (using a Find or a Go to Related Record step). Your complete script will look something like the following:
#  If you plan to export multiple records, make the following a List layout
Go to layout ["PDF Export Layout"]
#  Isolate the record(s) you want to export
Perform Find [Restore]
Save Records as PDF []
#  Optional step to return to your original layout
Go to layout [original layout]

The Save Records as PDF script step optionally allows you to specify the output file name (and path), whether to create a new file or append this export to an existing PDF file, set security options, and set initial view parameters for the PDF reader.
0
 

Author Comment

by:PachecoPrimo
ID: 39703688
Hi historychef,
Thanks for your comment. I am trying to create a pdf initially and then append more records to it via a loop.  How can I store temporarily the initial pdf, so that the remainder pages can be added?
Thanks
0
 
LVL 4

Accepted Solution

by:
historychef earned 500 total points
ID: 39703774
If you check "Append to existing PDF" in the Save Records as PDF script step, FileMaker will create the file if it doesn't already exist, and append new pages to it if it already exists. Note that you cannot append individual records on the same page: every subsequent execution of the script will start a new page, including headers and footers, if any. Here's an example, produced by executing the same script twice. If you want to change the headers or footers on subsequent pages, you can create different layouts for the first page and for the other pages.

I suggest you play around with the script step until you get what you want.
Test.pdf
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There is a security feature on iOS devices that is nearly impenetrable when it has been activated.  This article will provide some possible solutions as well as necessary steps to take to ensure you do not end up with a locked device.
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question